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
Anonymous
Not applicable

CALCULATE % of TOTAL value

Hi Pbi expert

i need to calculate a % value og each row based on total.

eg:  i want to calculate value as showed down in red

How can I reach such calculation ? 

categ.Count 
M-52025%
M-41924%
M-71519%
M-31316%
M-61215%
Total79 
1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @Anonymous ,

 You can try adding the count to the matrix again but then setting the field to show as % of grand total.

 

djurecicK2_0-1669999940716.png

Please accept as solution if this answers the question- thanks!

View solution in original post

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, please try:

Percentage = DIVIDE(COUNT('Table'[categ]),CALCULATE(COUNT('Table'[categ]),ALL('Table')))

Change the format:

vjianbolimsft_1-1670312208773.png

Final output:

vjianbolimsft_0-1670312167184.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

djurecicK2
Super User
Super User

Hi @Anonymous ,

 You can try adding the count to the matrix again but then setting the field to show as % of grand total.

 

djurecicK2_0-1669999940716.png

Please accept as solution if this answers the question- thanks!

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.