cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adieball
Helper I
Helper I

Latest Date based on multiple columns

Hi

 

I have a source that has multiple date columns.

I need to find the latest date over all e.g. three columns.

 

How can I do this? any help is appreciated thanks

1 ACCEPTED SOLUTION

@adieball

 

Also using the Query Editor's User Interface,,, you can add a column for latest date

Select all the Date Columns and select Latest date as shown in image below

 

Maxdates.png


Regards
Zubair

Please try my custom visuals

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft
Microsoft

Hi @adieball,

Based on my test, you could refer to below steps:

Add a customer column in query editor:

=List.Max({[Column2], [Date1], [Column1]})

1.PNG

Apply it and create a measure:

myMax = MAX('Table1'[Latest])

Now you could see the correct result.

2.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@adieball

 

Also using the Query Editor's User Interface,,, you can add a column for latest date

Select all the Date Columns and select Latest date as shown in image below

 

Maxdates.png


Regards
Zubair

Please try my custom visuals
jthomson
Solution Sage
Solution Sage

Make a measure to find the latest in each of the columns individually. Then make a measure that pulls the individual measure results in as variables, having a result of the latest of the three variables.

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.