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
edwardroa
Helper I
Helper I

return latest date between 2 date columns

Hi there,

 

I am struggling to find an efficient DAX formula to give me a column which contains the latest date from 2 date columns.

For example, the below table is my data source and the 2 columns I would like to use are "Lease End Date" & "Lease Secondary End Date":

edwardroa_0-1654647560359.png

 

I would like to add the below column highlighted as desired result in Power BI?

edwardroa_1-1654647619862.png

 

Please help me solve, I've been trying for the last 2 hours with no easy solution found yet.

Thank you,

Edward

 

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

Max([Lease End Date],[Lease Secoundary End Date])

View solution in original post

3 REPLIES 3
vapid128
Solution Specialist
Solution Specialist

Max([Lease End Date],[Lease Secoundary End Date])

Thank you.

 

For the rows which has a blank "Lease Secondary End Date" the result is returning me a blank instead of the "Lease End Date"?

when we use MAX , blank = 0.  the result will be whatever non 0.

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.

Top Solution Authors