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
jonalyncas
New Member

How to get percentage of a group for multiple columns

Hi! I need your expert guidance, please. I am working on a dataset to get the volume percentage of each size, per quartile. I also want to create a table visual in powerBI. Here is what the data and expected output looks like.

Thank you in advance! ❤️

PS:
I've used the below formula but im getting the same % results for all sizes for Q1-Q4 . 😞

Test Engage = DIVIDE(COUNT('Table Q1),
CALCULATE(COUNT('TTable Q1]),
ALL()))



jonalyncas_0-1663242456225.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jonalyncas 

Step 1: Please go to Power Query and Unpivot all your data

Dax_Noob_0-1663244558775.png


Step 2: Go back to your reporting tab and create a matrix as per such

Dax_Noob_1-1663244677467.png


Step 3: Click on dropdown on count of value > Show Value As > Percent of Row Total

Dax_Noob_2-1663244717636.png


BR

View solution in original post

2 REPLIES 2
jonalyncas
New Member

Hey @Anonymous , thank you so much. First time I leaned about unpivot. Very helpful. And thank you for helping out with the steps. You're a Gem. 🙂

Anonymous
Not applicable

Hi @jonalyncas 

Step 1: Please go to Power Query and Unpivot all your data

Dax_Noob_0-1663244558775.png


Step 2: Go back to your reporting tab and create a matrix as per such

Dax_Noob_1-1663244677467.png


Step 3: Click on dropdown on count of value > Show Value As > Percent of Row Total

Dax_Noob_2-1663244717636.png


BR

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.