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
axarhaan
Helper I
Helper I

Error in sum of multiple columns

Newbie here,

 

Wanted to create a new column and get the desired results highlighted in yellow.

 

I have 3 columns named apple, orange and mango and need to get total of each column plus percentage in new column. Few column values might be blank or null.

 

Don't know how to do cause I tried SUMX but its giving me very different result like 184 which I don't know where it comes from. 

Any help is greatly appreciated.

 

axarhaan_0-1678211108683.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @axarhaan 

 

You can try the following methods.

Total = [Apple]+[Orange]+[Mango]
% = [Total]/3

vzhangti_0-1678864802607.png

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.

View solution in original post

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @axarhaan 

 

You can try the following methods.

Total = [Apple]+[Orange]+[Mango]
% = [Total]/3

vzhangti_0-1678864802607.png

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.

@v-zhangti 

 

Thank you so much. Yes, this worked. 

axarhaan
Helper I
Helper I

Commenting on this to bring it to top as I am still struggling to get this work.

 

Please advise. Thanks.

Greg_Deckler
Community Champion
Community Champion

@axarhaan Multi-Column Aggregations (MC Aggregations) - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

Thank you for your response and sharing MC Aggregations. 

 

I tried the MC Sum measure per your pbix file and still getting the wrong calculation. What am I doing wrong here?

Please advise. Thanks.

 

axarhaan_0-1678218469645.png

 

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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