Need to default to last nonblank value
问题 At present that dax calculation is a simple SUM, but I need to default to the last non-blank value for the GrandTotal: For example, instead of stating 167, it should not 9: 回答1: Similar to the other question you asked, you can use HASONEVALUE to change the behavior of the Grand Total. If the column you are summing is named Table1[Value] then the measure you want will look something like this: LastNonBlankValue = VAR LastNonBlankDate = CALCULATE(MAX(DimDate[Date]), Table1[Value] > 0) RETURN IF