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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jovendeluna21
Helper III
Helper III

How to filter automatically the latest date available in a data?

Hello,

Anyone who knows to create a calculation on which the latest date and its data only will appear on a page?

Thank you!

https://drive.google.com/file/d/1N7fl0SMrgOKRS8IYJauaqm8X1wJNXKxt/view?usp=sharing

 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Hi @jovendeluna21 ,

 

A calculated column to get the latest date will do the trick.

DAX formula:

Latest_date_column = IF(Vaccination[Record Date] = MAX(Vaccination[Record Date]), "Latest Date", FORMAT(Vaccination[Record Date], "MM-DD-YYYY"))

Logic implemented in the file present here

 

Thanks

 

Appreciate your Kudos🙂

View solution in original post

5 REPLIES 5
PC2790
Community Champion
Community Champion

Hi @jovendeluna21 ,

 

A calculated column to get the latest date will do the trick.

DAX formula:

Latest_date_column = IF(Vaccination[Record Date] = MAX(Vaccination[Record Date]), "Latest Date", FORMAT(Vaccination[Record Date], "MM-DD-YYYY"))

Logic implemented in the file present here

 

Thanks

 

Appreciate your Kudos🙂

Thank you @PC2790 ! Appreciate your help! 🙂

mhossain
Solution Sage
Solution Sage

Hello @jovendeluna21 

 

Many ways to do that, I think easiest would be in your PowerQuery create a calculated column which identifies latest date and tags it "Latest" maybe.

Then on your page apply "Latest" filter, it should solve the purpose. Please share more details if it is not working.

how can I identify that? any suggested formula? Thank you!

@jovendeluna21 

If you want to identify in PowerQuery, this linke might be useful - https://stackoverflow.com/questions/50457881/how-to-find-the-most-current-date-from-a-column-in-powe...

 

In DAX environment also, you can try MAX().

 

Hope above makese sense.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.