Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
asdf1608
Helper V
Helper 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

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @asdf1608 ,

 

Try this as a measure:

COALESCE(SUM(yourTable[Column1]) + SUM(yourTable[Column2]), 0)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




@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

 

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



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors