Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
antholee
New Member

Finding Latest Date in Already Filtered Table

Hello, I am looking for help with this:

 

How would I find the latest date from an already-filtered table?

e.g. from a table of a few thousand rows, I have filtered out 2 rows:

antholee_0-1597339891825.png

how could I find the latest date based on these 2 rows, and assign a value in another column? so the end result would be another column designating ID 13334 as the row with the latest time.

 

I have tried using Max formula, but it finds the max day from the whole unfiltered table/dataset. How do I find the latest date of already filtered data?

 

Edit: I am filtering a table using the date already. In my case, I am filtering for August 4th 2020. After filtering, I am left with 2 rows, in which I want to create another column that will signify the row that occurs at a later time (Last Updated MST). I would like a calculated column that will identify that 8/4/2020 11 20 AM occurs after 11:10AM .

 

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @antholee , 

I think you need to use measure to achieve this goal. You could refer to my sample for details.

 

Best Regards,
Zoe Zhi

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

4 REPLIES 4
Daviejoe
Memorable Member
Memorable Member

Let me know if this helps

 

https://www.daxpatterns.com/ranking/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@antholee , Not very clear

Try

calculate(max(Table[lastupdated]), allexcept(Table[ID]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry if it was not clear.

I am filtering a table using the date already. In my case, I am filtering for August 4th 2020. After filtering, I am left with 2 rows, in which I want to create another column that will signify the row that occurs at a later time (Last Updated MST). I would like a calculated column that will identify that 8/4/2020 11 20 AM occurs after 11:10AM .

 

I have tried your recommendation and it returned to me the same two dates.

dax
Community Support
Community Support

Hi @antholee , 

I think you need to use measure to achieve this goal. You could refer to my sample for details.

 

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors