Forum Discussion
gancw1
Resolver II
3 years agoDisplay most recent record or highest value for each category
I have a table of student marks with the date the tests are taken. Student Date Marks A 10/9/2022 50 A 11/9/2022 90 A 15/9/2022 80 B 11/9/2022 90 B 12/9/2022 70 C 1...
amitchandak
Super User
3 years agogancw1 , refer my blogs can help
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
gancw1
Resolver II
3 years ago
In your code
Last Status = var _max = maxx(filter(ALLSELECTED(Data), Data[ID] = Max(Data[ID])), Data[Date])
return
CALCULATE(max(Data[Status]), filter((Data) , Data[Date] =_max))
What does this expression do ?
Data[ID] = Max(Data[ID])