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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors