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
HMK273
Frequent Visitor

Calculated column that compares multiple columns and returns latest date/ highest value

Hello,

I'm trying to create a calculate/measure column which can find the recent date of 4 columns (C1, C2, C3, C4) and avoid empty values. As what I've done in Excel in Power Bi tables (not queries) by finding the recent date of 4 columns (C1, C2, C3, C4) and avoiding empty values.


Thanks in advance.

HMK273_1-1668436024670.png

HMK273_2-1668436904498.png

 

 

 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@HMK273 ,

This Calculated Column should work for you:

MaxDate = MAX([C4], ( MAX( [C3], ( MAX( [C1], [C2] )))))

Regards,

View solution in original post

2 REPLIES 2
rsbin
Super User
Super User

@HMK273 ,

This Calculated Column should work for you:

MaxDate = MAX([C4], ( MAX( [C3], ( MAX( [C1], [C2] )))))

Regards,

HMK273
Frequent Visitor

@rsbinThank you very much, it works.

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.