Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have 3 tables joined by an ID Field.
In table 1 I have the ID field and it is joined to table 2 that has the Original Date for each ID and joined to table 3 that has the Revised Date for each ID.
I want to create a measure that looks at the date for the ID in Table 2 and the date for the ID in Table 3 and return the later of the two dates into a new measure called 'Latest Date'.
An assistance is welcomed!
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
It is for creating a measure.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
Expected result measure: =
VAR _origin =
MAXX ( RELATEDTABLE ( 'Original Date' ), 'Original Date'[Original Date] )
VAR _revised =
MAXX ( RELATEDTABLE ( 'Revised Date' ), 'Revised Date'[Revised Date] )
RETURN
IF ( HASONEVALUE ( 'Name'[Name] ), MAX ( _origin, _revised ) )
Hi @vincenardo ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
It is for creating a measure.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
Expected result measure: =
VAR _origin =
MAXX ( RELATEDTABLE ( 'Original Date' ), 'Original Date'[Original Date] )
VAR _revised =
MAXX ( RELATEDTABLE ( 'Revised Date' ), 'Revised Date'[Revised Date] )
RETURN
IF ( HASONEVALUE ( 'Name'[Name] ), MAX ( _origin, _revised ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |