Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

How to get the earlier date



I have a measure that results in dates and I'd to get the earlier date (in this case 30/05/2027). Is import to say that I put at FALSE argument (IF) the blank() but I accept other sugestions.



Do you know if is possible?


Thank you so much!

Community Support
Community Support

Hi @luizahenriques ,


According to your description, here are my steps you can follow as a solution.

(1) We can create a measure. 

earlier date = MINX(FILTER(ALLSELECTED('Table'),[UltimoMesSaldo]<>BLANK()),[UltimoMesSaldo])

(2) Then the result is as follows.



Best Regards,

Neeko Tang

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

Frequent Visitor

Thank for answering! But this functions work only with columns, not measures. "UltimoMesSaldo" is a measure.

Super User
Super User

If you just need to get the last date overall, you can create a measure to return the last date. Something like: CALCULATE(LASTDATE(UltimoMesSaldo), ALL(TableName)). Sorry i don't have accent keys on this keyboard BTW.

Or, you can look into the LastNonBlank function to return the last value which is not blank. Docs here:


Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors