Forum Discussion
Second Last Date Total
- 6 years ago
measure =
var _max= maxx(allselected(Table),Table[date])
return
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),Table[Date]<_max)OR
measure =
var _max= maxx(allselected(Table),Table[date])
return
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),filter(allselected(Table),Table[Date]<_max))
measure =
var _max= maxx(allselected(Table),Table[date])
return
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),Table[Date]<_max)
OR
measure =
var _max= maxx(allselected(Table),Table[date])
return
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),filter(allselected(Table),Table[Date]<_max))
- Boycie926 years agoResolver I
Hi amitchandak
That works perfectly thank yo so much. Is there anyway to display the second las date as a seperate messure?
Thanks,
Boycie92
- amitchandak6 years agoSuper User
Boycie92 , Create a measure in the same way as the last one and in that use
max(Table[Date]) in place of Sum(Table[Total])