Forum Discussion
Boycie92
Resolver I
6 years agoSecond Last Date Total
Hi, I am hoping someone can help I have a very simple table. I would like to be able to create a measure that would provide the figure (total) for the second last date available in my data. S...
- 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))
Fowmy
Super User
6 years agoBoycie92
Please check this solution,
https://community.powerbi.com/t5/Desktop/Show-second-last-date-value-in-card/td-p/531093