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 guys,
I could really use your help turning the SQL formula below into a DAX format. What is the DAX-equivalent of a 'case when..' in SQL? Help is very much appreciated!
case when nvl(amount_remaining,0) <> 0 and (sysdate - due_date) > 0 then (sysdate - due_date) else 0 end
Kind Regards
Solved! Go to Solution.
Try looking at the IF() function, and use multiple criteria by joing them with the double ampersand.
= IF(A = 1 && B = 2, Does This If True, Does This if False)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingTry looking at the IF() function, and use multiple criteria by joing them with the double ampersand.
= IF(A = 1 && B = 2, Does This If True, Does This if False)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |