Forum Discussion
Anonymous
5 years agoNot applicable
Filter only latest row for unique ID
Hi all, 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 Max...
- Anonymous5 years ago
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")Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
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")Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.