Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 ReportingCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |