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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Finding a value related to latest Date

Hi all,

 

I have a table with these columns:

 

Name and Date Obs

 

I want to add a third column (Latest Obs Date). Latest Obs Date looks at all rows with the same Name, finds the latest Date out of all those rows, and gives me the date from that row. See example in the table below:

 

NameDate ObsLatest Obs Date
Abraham Lincoln8/1/20198/1/2019
Bill Gates8/5/20199/2/2019
Bill Gates9/2/20199/2/2019
Gandhi8/9/20199/3/2019
Gandhi9/3/20199/3/2019
John F. Kennedy9/2/20199/2/2019
John F. Kennedy8/14/20199/2/2019
Marilyn Monroe9/11/20199/11/2019

 

Thanks in advance for the help

1 ACCEPTED SOLUTION
2 REPLIES 2
Anonymous
Not applicable

Thanks @amitchandak,

 

I'm working with tables that I need to join based on this calculated field. I know how to do the calculation in DAX, however, this doesn't help me merge the tables (I need to join on multiple columns so relationships won't work). I know if I can get the DAX function I used in DAX into Power Query I will be able to merge the tables but I just can't quite get the formula right. This is what I have in DAX:

 

Latest Obs Date = CALCULATE ( LASTDATE ( 'Tutor Observation Log'[Date Obs] ), ALLEXCEPT ( 'Tutor Observation Log' , 'Tutor Observation Log'[Name] ) )

 

Any help is appreciated!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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