Forum Discussion
asdf1608
3 years agoHelper V
Need help with DAX
I need to convert the tableau calculated field to Power BI zn(sum([column 1]) + sum([column 2])) Thanks in advance
BA_Pete
3 years agoSuper User
Hi asdf1608 ,
Try this as a measure:
COALESCE(SUM(yourTable[Column1]) + SUM(yourTable[Column2]), 0)
Pete
asdf1608
3 years agoHelper V
BA_Pete I tried the same but the values seems to be wrong.
In tableau I got another value and in Power bI got another value.
Is there any other reasons
- BA_Pete3 years agoSuper User
Almost impossible to say without being able to see the detail behind it all.
Coalesce should work fine, but you could try this as an alternative:
VAR __calc = SUM(yourTable[Column1]) + SUM(yourTable[Column2]) RETURN IF( ISBLANK(__calc), 0, __calc)Pete