The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have created a calculated column to essentially countdown from the start date to the end date. I then create a card that the tracks days and months remaining until the end date is met . As each day goes by the days and months are reduced until they get to 0 which is when the end date is met.
Contribution | Date | End Date |
contribution1 | 12/30/2019 | 7/31/2022 |
contribution2 | 6/29/2020 | 1/31/2023 |
contribution3 | 12/31/2020 | 7/31/2023 |
contribution1 | 12/30/2019 | 7/31/2024 |
contribution2 | 6/29/2020 | 1/31/2025 |
contribution3 | 12/31/2020 | 7/31/2025 |
Below is the dax that I use to calculate days remaining and months remaining
Solved! Go to Solution.
Test if the start date is in the past. If yes, use your existing formula. If no, subtract the start date from the end date.
You can also short cut this by using MAX() with two parameters.
Months until funds must be spent :=
DATEDIFF(MAX(TODAY(),'QOZ to QOZB'[Start Date]),
MAX(TODAY(),'QOZ to QOZB'[End Date]),
MONTH
)
Bonus: This will automatically yield zero when the end date has passed too.
Test if the start date is in the past. If yes, use your existing formula. If no, subtract the start date from the end date.
You can also short cut this by using MAX() with two parameters.
Months until funds must be spent :=
DATEDIFF(MAX(TODAY(),'QOZ to QOZB'[Start Date]),
MAX(TODAY(),'QOZ to QOZB'[End Date]),
MONTH
)
Bonus: This will automatically yield zero when the end date has passed too.
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
83 | |
68 | |
49 | |
46 |