Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |