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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors