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
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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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
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.