Forum Discussion
Anonymous
3 years agoNot applicable
Convert ISNULL case statement to DAX
Hi,
Looking to recreate the case statement below into Dax. Any help is appreciated. Thanks!
SELECT
sum(case when ISNULL(ca.CON_NAME,'write') = 'write' and ISNULL(ca.DEC_AMT,0) > 0 then 1 else 0 end)
FROM ano.bbc CA
Hi, Anonymous
You can try the following methods.
Column = IF((ISBLANK(ca[CON_Name])||ca[CON_Name] =""||ca[CON_Name]="write") &&ca[DEC_AMT]>0,1,0)Measure = SUM(ca[Column])Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-zhangtiCommunity Support
Hi, Anonymous
You can try the following methods.
Column = IF((ISBLANK(ca[CON_Name])||ca[CON_Name] =""||ca[CON_Name]="write") &&ca[DEC_AMT]>0,1,0)Measure = SUM(ca[Column])Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.