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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to calculate a date by using two date columns. I want to use column mos_d_override first but if there is a null value then i want to use mos_d_schedule. I get results but not correct results. The results of this formula are used in another formula to calculate past due days. I am new to this so please bear with me. Thank you.
if [mos_d_override] is null then Date.AddDays([d_schedule] else Date.AddDays([mos_d_override]
Solved! Go to Solution.
Hi @dferry ,
How about this?
if [mos_d_override] is null then [d_schedule] else [mos_d_override]
Let me know, if this solves your issue 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
This worked great. Thank you as overthinking got me once again. Thank you again.
As @tackytechtom said, but you should use the syntax
if [Date] = null
instead of
if [Date] is null
--Nate
Sorry, this didn't work. Thank you for your time.
Hi @dferry ,
How about this?
if [mos_d_override] is null then [d_schedule] else [mos_d_override]
Let me know, if this solves your issue 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
This worked great. Thank you as overthinking got me once again. Thank you again.
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 |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 5 | |
| 3 |