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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
Employee

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.