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
smileamile2
Resolver I
Resolver I

Calculate % of total at attribute level (not grand total)

I am trying to create a measure for % of total by Site. % of Grand Total can use built-in functionality so no work there, but what is the logic to break it down to an attribute level?

 

Tried this but it doesn't work: DIVIDE(SUM('Main'[Amount]),CALCULATE(SUM('Main'[Amount]),ALLEXCEPT('Main','Main'[Site])))

 

smileamile2_0-1623707980816.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi @smileamile2 ,

 

I used your formula and get the result as shown in your screenshot. What is the expected result?

6.PNG

 

Best Regards,

Jay

selimovd
Super User
Super User

Hey @smileamile2 ,

 

can you show your result in Power BI?

The values for % of total by site look good, but I guess that's Excel.

 

What is the result for the calculate-part:

CALCULATE(SUM('Main'[Amount]),ALLEXCEPT('Main','Main'[Site]))

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Most results are 0%, only adding up to a total of 9.71%. I only included the excel spreadsheet as the desired outcome sample.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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