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
sovereignauto
Helper III
Helper III

% Column to Total using Calculation rather than Average

Afternoon,

I have a table with Rows and Columns i need to try and have the total as a the same calucation the rows do.

So for example image below the total should be 57% not 42% at the moment i have summarise set to "average" 

tempsnip.png

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @sovereignauto ;

Based on my test, maybe it is better to use sum() to divide, and its total will be correct. I made a simple example and measured as follows:

sum = DIVIDE(SUM('Table'[value2]),SUM([value1]))

The final output is shown below:

vyalanwumsft_0-1624523851850.png

Best Regards,
Community Support Team_ Yalan Wu
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

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @sovereignauto ;

Based on my test, maybe it is better to use sum() to divide, and its total will be correct. I made a simple example and measured as follows:

sum = DIVIDE(SUM('Table'[value2]),SUM([value1]))

The final output is shown below:

vyalanwumsft_0-1624523851850.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Kumail
Post Prodigy
Post Prodigy

Hello @sovereignauto 

 

You can use sumx function to solve this. 

 

I can write you the solution directly If you could provide sample .pbix file.

 

Regards

Kumail Raza

HI Kumail, i can use sumx in DAX but how would i get thsi to display as the total or do you "cover" the old  total with a card or similar so it looks correct? 

This is one of the blogs that you can refer 

https://blog.enterprisedna.co/getting-totals-correct-when-using-advanced-logic/

 

I can also help you with the solution once .pbix file is available. 

 

Regards

Kumail Raza

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