Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
MitieNHSFred
Helper I
Helper I

Pie chart to count number of resource groups involvement in 145 projects

I have, at present, an excel file with 145 project entries (in rows) and, against each project, 9 resource groups in individual columns, showing True or False relating to their involvement.  The data will, eventually be embedded in MSProject and will be output via PowerBI

I'm trying to create a pie that shows the overall count or %age for each of the resource groups, but I can't get my head around which field belongs where.

 

Any help much appreciated

Cheers

Fred

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@MitieNHSFred seems like your data is in pivoted shape and to make it work you should unpivot data, basically resource groups will be on the rows instead of the columns (if I understood it correctly). You can easily unpivot the data in the PQ, by following these steps:

 

Transform Data -> Select all columns else resource group columns -> right click -> unpivot other columns

 

It will add two columns, attribute and value, and rename these columns as you see fit, close, and apply.

 

Now in the Pie visual, you will put attributes on the legend and values on the values section of the pie chart.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the reply from parry2k.

 

Hi @MitieNHSFred ,

 

I created simple test data.

vlinhuizhmsft_0-1731564508063.png

 

As parry2k said, we can do the unpivot operation.

vlinhuizhmsft_1-1731564609989.png

 

Click on the button to see all the information:

vlinhuizhmsft_3-1731564807162.png

 

Or create a measure and use it as a tooltip, this will allow you to see the projects to which them belong.

GroupedProjectsMeasure = 
CALCULATE(
    CONCATENATEX(
        FILTER('Table (2)','Table (2)'[Value] = TRUE()),
       'Table (2)'[Project Number],
        "&"
    ),
    ALLEXCEPT('Table (2)','Table (2)'[Attribute])
)

Result:

vlinhuizhmsft_4-1731564988793.png

 

Best Regards,
Zhu

 

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

parry2k
Super User
Super User

@MitieNHSFred seems like your data is in pivoted shape and to make it work you should unpivot data, basically resource groups will be on the rows instead of the columns (if I understood it correctly). You can easily unpivot the data in the PQ, by following these steps:

 

Transform Data -> Select all columns else resource group columns -> right click -> unpivot other columns

 

It will add two columns, attribute and value, and rename these columns as you see fit, close, and apply.

 

Now in the Pie visual, you will put attributes on the legend and values on the values section of the pie chart.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k 

 

Apologies for the delayed confirmation, I had a bit of a "set-to" with the edit interactions as, when I clicked on a pie segment the associated reports didn't update . . . . fixed now.

 

Thanks for the Un-pivot pointer, that worked a treat

Regards

Fred

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.