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 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 26 | |
| 20 | |
| 18 | |
| 17 |