Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
Solved! 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")
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.
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 , 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]))))
this is brilliant thank you!!
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..."
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |