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
Hi All
I need help on below dax . I want If Contract end Date < 2021 should be marked equal 0. screenshot below
Dax:
Future Relationship = [Total relationship] -[Current Relationship]
Solved! Go to Solution.
Hi @mdaamirkhan
How are you calculating Contract End Date? Is it a column? Measure?
Try this
Future Relationship =
VAR _FR = [Total relationship] -[Current Relationship]
RETURN
IF(YEAR([Contracts end date]) < 2021, 0 , _FR)
Regards
Phil
Proud to be a Super User!
Hi @mdaamirkhan
How are you calculating Contract End Date? Is it a column? Measure?
Try this
Future Relationship =
VAR _FR = [Total relationship] -[Current Relationship]
RETURN
IF(YEAR([Contracts end date]) < 2021, 0 , _FR)
Regards
Phil
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |