Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am trying to create a new custom measure that will compare two dates from two different tables. This is how the model has been defined
I need to compare the Agreement[Agreement Activated Date] to the Policy Date which is a calculated column with the following definition:
Is there a way to compare the dates by row so that it can take the maximum of the two dates on the row and uses that to set as the new maxdate?
Solved! Go to Solution.
You could create a calculated column in the agreement snapshot fact table like
Cancellation Due Date =
MAX (
RELATED ( Agreement[AgreementActivatedDate] ),
RELATED ( Policy[Policy Date] )
) + 60
You could create a calculated column in the agreement snapshot fact table like
Cancellation Due Date =
MAX (
RELATED ( Agreement[AgreementActivatedDate] ),
RELATED ( Policy[Policy Date] )
) + 60
Max( max( Agreement[Agreement Activated Date]), max(Policy[Policy Date]))
That also causes the same issue. I am basically trying to define this Sql logic in Power Bi
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 54 | |
| 44 | |
| 42 | |
| 39 | |
| 36 |