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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mattross19
Regular Visitor

Pull Last Date from 4 Different Date Columns

I have four different date columns. They won't all be populated, but I'm trying to add a new column to the dataset that will look at those four date fields to assess the values in those columns (if more than 1) to determine what is the last date. 

 

Is there a formula I could create to pull that last date value into a new column? 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@mattross19 ,

Please see if this works for you.  Create a new Calculated Column:

MaxDate = MAX([4], ( MAX( [3], ( MAX( [1], [2] )))))

1                                     2                                       3                                  4                                        MaxDate

Tuesday, February 1, 2022 Tuesday, February 15, 2022 Monday, March 14, 2022 Sunday, April 10, 2022 4/10/2022 12:00:00 AM
Tuesday, March 1, 2022   Friday, July 1, 2022 Wednesday, June 1, 2022 7/1/2022 12:00:00 AM

Regards,

 

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@mattross19 ,

Please see if this works for you.  Create a new Calculated Column:

MaxDate = MAX([4], ( MAX( [3], ( MAX( [1], [2] )))))

1                                     2                                       3                                  4                                        MaxDate

Tuesday, February 1, 2022 Tuesday, February 15, 2022 Monday, March 14, 2022 Sunday, April 10, 2022 4/10/2022 12:00:00 AM
Tuesday, March 1, 2022   Friday, July 1, 2022 Wednesday, June 1, 2022 7/1/2022 12:00:00 AM

Regards,

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors