Here is the full formula from that spreadsheet, it seems to have been cut off above:
LastPriceMeasure:=CALCULATE([Sum_Value], FILTER ('Table', 'Table'[Date] =CALCULATE (LASTNONBLANK ('Table'[Date], 1 ), FILTER ( 'Table',
'Table'[Date] <=LASTDATE(DimDate[Date])))))
So, if I am reading this correctly, it is calculating the sum of value (Sum_Value) filtering Table by the [Date] column in Table which is being set equal to the result of the last non blank value of Table being filtered by [Date] < the
last date of the date dimension.
So the last part returns all dates less than the last date of the date dimension and this would be done for each date in Table when used as a measure.
Then last non blank returns the last non blank date of the result above
Table is filtered by this date and the sum of value is calculated for that particular date...
Correct?
-
Proposed as answer by
Michael AmadiModerator
Sunday, July 26, 2015 10:35 AM