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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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