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
astorey1
Frequent Visitor

Percentage calculation of groups

I have a table and I'm trying to create some visuals based on grouping of items. So for example Team 1 is at 98/100 but they belong to unit A. When i use a clustered colum chart for unit A it shows 272/300 instead of 91%. I have tried a few measures but cant seem to get the percentage calculation right for Unit Progress % and Route Progress %. Any help appreciated. Route Unit TeamItem 1 Progress Item 1 Target Item 1 Deadline Item 2 Progress Item 2 Target Item 2 Deadline Red A 1 98 100 20/08/2019 30 100 04/02/2020 Red A 2 75 100 20/08/2019 10 100 04/02/2020 Red A 3 99 100 20/08/2019 40 100 04/02/2020 Red B 4 100 100 20/08/2019 90 100 04/02/2020 Yellow C 5 100 100 20/08/2019 65 100 04/02/2020 Yellow C 6 100 100 20/08/2019 80 100 04/02/2020 Red D 7 75 100 20/08/2019 10 100 04/02/2020 Yellow E 8 100 100 20/08/2019 10 100 04/02/2020 Yellow E 9 100 100 20/08/2019 10 100 04/02/2020 Red D 10 75 100 20/08/2019 10 100 04/02/2020 Red D 11 90 100 20/08/2019 10 100 04/02/2020 Red F 12 95 100 20/08/2019 10 100 04/02/2020 Red F 13 75 100 20/08/2019 10 100 04/02/2020
1 ACCEPTED SOLUTION
EricHulshof
Solution Sage
Solution Sage

Hello,

You want to create a measure for that. 

MeasureName = SUM('Table'[Item 1 progress])/SUM('Table'[Item 1 target])

This way no matter on what you filter the visual it will show the % of the Item 1. You have to create a seperate measure for Item 2. 

Knipsel.PNG 

After you made the measure make sure to set its format to percentage in the modeling tab as can be seen in the screenshot.

Goodluck!


Quality over Quantity


Did I answer your question? Mark my post as a solution!


View solution in original post

3 REPLIES 3
EricHulshof
Solution Sage
Solution Sage

Hello,

You want to create a measure for that. 

MeasureName = SUM('Table'[Item 1 progress])/SUM('Table'[Item 1 target])

This way no matter on what you filter the visual it will show the % of the Item 1. You have to create a seperate measure for Item 2. 

Knipsel.PNG 

After you made the measure make sure to set its format to percentage in the modeling tab as can be seen in the screenshot.

Goodluck!


Quality over Quantity


Did I answer your question? Mark my post as a solution!


Thats excellent - so easy!!

 

Thanks

amitchandak
Super User
Super User

Seems like data has become continuous text.

Please provide same in table format

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.