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

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

Reply
ddownard
Frequent Visitor

Find most recent date from multiple columns

I have a worklflow which assigns a phase (Phase A) to multiple people simultaneously.  Each person may approve the workflow on a different date.  I need to calculate the days between the last approval of this phase and the completion date of the following phase.  To do this, I'd like to create a column that displays the most recent approval date from multiple columns.  Can someone tell me how I can display this date?

 

Record IDSupervisor DateEngineer DateWriter DateMost Recent Date
Record 1234/1/214/18/214/7/21Find most recent date
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ddownard , Try a new column like

 

Switch( True(),
[Supervisor Date] > [Engineer Date] && [Supervisor Date] > [Writer Date], [Supervisor Date],
[Engineer Date] > [Writer Date] ,[Engineer Date] ,
[Writer Date]
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
ddownard
Frequent Visitor

The solution from @amitchandak is the solution that produces the desired results.  Hoping someone can tell me how to add three more columns to amitchandak's solution.  Thanks!

Anonymous
Not applicable

Hi @ddownard 

Please correct me if I wrongly understood your question.

According to your description, you hope to find the largest date in the three date columns and return this value .I create a measure that may meet your needs .

Measure = MAXX({MAX('Table'[Supervisor Date]),MAX('Table'[Engineer Date]),MAX('Table'[Writer Date])},[Value])

 

The effect is as shown:

Ailsa-msft_0-1619686989018.png

 

Best Regards

Community Support Team _ Ailsa Tao

 

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

ddownard
Frequent Visitor

Thanks @amitchandak.  That worked!  Would you mind telling me what to add for this to work with three additional date columns?

Singaravelu_R
Resolver III
Resolver III

Go to query editor and duplictate the date all date column. and convert duplicate date column in to the data type as whole number.

 

Singaravelu_R_0-1619527441129.png

select all duplicate date column (converted into the whole number) and click add column --> statistics --->Maximum.

 

Singaravelu_R_1-1619527556409.png

Now change date type into Date to get the most recent date.

amitchandak
Super User
Super User

@ddownard , Try a new column like

 

Switch( True(),
[Supervisor Date] > [Engineer Date] && [Supervisor Date] > [Writer Date], [Supervisor Date],
[Engineer Date] > [Writer Date] ,[Engineer Date] ,
[Writer Date]
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , can you tell me how to change your code to include three additional columns?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.