I need to filter for latest date results per given ID in this table e.g. for ID = 1283273, I would like to see only row with 11/22/2020 6:50:18PM date.
I have tried
Go to Solution.
Hi @Anonymous ,
Based on your description, you can create some calculated columns as follows.
MaxDate = CALCULATE(LASTNONBLANKVALUE('Fact'[OrderDateTime],MAX('Fact'[OrderDateTime])),ALLEXCEPT('Fact','Fact'[ID]))
Islatest = IF([OrderDateTime]=[MaxDate],"Latest","Older")
Hope that's what you were looking for.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
@Anonymous , Create a measure like this and use it with ID
calculate(Max(Table[OrderDateTime]), filter(Table, Table[OrderDateTime] = calculate(min(Table[OrderDateTime]), allexcept(Table, Table[ID]))))
Thanks @amitchandak ,
I have created this measure per you suggestion and dropped into my table with IDs, but it shows blank so does seem to be working as expected. Otherwise, please explain what you mean by "...use it with ID..."
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.