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
Hey all -
I don't if this is simple or not. I am trying to calculate days between the two dates in the same record. Some dates in the first column are null and DATEDIFF does not like this. I would like to replace the second date with the first if the first is null.
If somebody could give me some direction, that would be awesome.
Thanks,
Mike
Something like this?
Days = IF(ISBLANK([Date]),DATEDIFF([EndDate],[EndDate],DAY),DATEDIFF([Date],[EndDate],DAY))
Thank you - I have got to tinker with formula but will get back with this post next week.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 172 | |
| 107 | |
| 92 | |
| 54 | |
| 46 |