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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.