Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
Solved! Go to Solution.
@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.
Thanks for the reply from parry2k.
Hi @MitieNHSFred ,
I created simple test data.
As parry2k said, we can do the unpivot operation.
Click on the button to see all the information:
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:
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.
@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
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 133 | |
| 99 | |
| 57 | |
| 38 | |
| 38 |