Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have been trying to convert the below Excel nested IF statement to DAX, and I cannot seem to get anything to work for me, maybe I'm making this more complicated than it really is. I'm new to DAX and can't seem to make the transition from Excel formulas to DAX!!!! Hoping someone can help me.
Here is my Excel If statement: =IF(OR(B2=0, B2=""), "Due Date Not Assigned", IF(AND(D2>=A2,D2<=B2),"Yes","No"))
Any help would be greatly appreciated!!
Solved! Go to Solution.
Hi @wbarnes ,
Create the following calculated column using DAX.
Appreciate a thumbs up if you found this helpful.
Please accept this solution if the query is resolved.
I think in DAX it will be something like this
Column =
IF('Table'[B] =0 || 'Table'[B] = null, "Due Date Not Assigned", IF('Table'[D] >='Table'[A] && 'Table'[D] <= 'Table'[B]',"Yes","No"))
You can also just add a custom column that in Power Query
if([B] = 0 or [B] = null) then "Due Date Not Assigned" else if([D] >= [A] and [D] <= [B]) then "Yes" else "No"
Hope that helps! Let me know!
Jewel
Thank you for your suggestion, this works!
Hi @wbarnes ,
Create the following calculated column using DAX.
Appreciate a thumbs up if you found this helpful.
Please accept this solution if the query is resolved.
Both solutions worked, thank you so much for your help!
I ended up following your layout.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |