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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
amitchandak
Super User
Super User
2 REPLIES 2
amitchandak
Super User
Super User

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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