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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
carlosfaganello
Regular Visitor

Get the most recent between several dates for a record

I have two tables: Records and Comments.

Comments are related (*:1) to the Records.

Comments have a createdon date and Records have a modifiedon date.

 

I want to create a column in Records with the latest modification of the Record, for that I have to check the latest createdon Comment related to that Record and the modifiedon of the Record itself and decide which one is the most recent.

 

I'm new to PowerBI and this might be simple, but I have no idea how to do it.

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @carlosfaganello 

In a calc column, this should get you the latest relevant date from Comment

Col =

CALCULATE(MAX(Comments[CreatedOn])

 

Then you can check with the modifiedOn from. I don't understand exactly what you need.

In general, it very much helps if you show a sample of your tables and an example with the expected result based on that sample

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

 

View solution in original post

3 REPLIES 3
AlB
Community Champion
Community Champion

@carlosfaganello 

You need it to trigger context transition and have the filter propagate down the relationship

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

AlB
Community Champion
Community Champion

Hi @carlosfaganello 

In a calc column, this should get you the latest relevant date from Comment

Col =

CALCULATE(MAX(Comments[CreatedOn])

 

Then you can check with the modifiedOn from. I don't understand exactly what you need.

In general, it very much helps if you show a sample of your tables and an example with the expected result based on that sample

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

 

Hi @AlB thanks for the response.

I was actually missing the CALCULATE function.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors