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

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.

Reply
TinyElephant
Helper III
Helper III

Plot count of employee against multiple tasks

I have a table of different employees involved in a number of projects. I want to plot the projects as Legends and count of employees against each project in the pie chart.

 

I am using a slicer for selecting employees because there will be more such data coming for each employee. How can I achieve this?

 

EmployeeProject AProject BProject C
JohnY  
Derek Y 
MichaelY Y
William Y 

 

 

TinyElephant_0-1627625218944.png

 

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi,  @TinyElephant 

You may need to unpivot your table columns as below:

17.png

18.png

 

Best Regards,
Community Support Team _ Eason

I did some workaround for the auto removal of null rows problem as described here.

https://community.powerbi.com/t5/Desktop/Unpivot-removes-rows-with-no-null-values-how-to-keep-them/m... 

 

But there's another problem. The 'Count of Value' goes into thousands due to the thousands of rows created after all unpivoting columns are done. If I select 'Count of Value (distinct)' filter, it's just 1 or 2.

TinyElephant_2-1627894908885.png

 

A simplified version of pbix file is uploaded here


https://drive.google.com/file/d/1ksOVue1bx8eyCCDSnKQuPMJDshnch7kK/view?usp=sharing

 

Thanks for the response. It works for most parts but Unpivoting Columns removes some entries (rows/names) where it is blank.
e.g. If I have a person who is not working in any of the mentioned projects (blank values), it will be auto removed when using Unpivot Columns. Any suggestion?

TinyElephant
Helper III
Helper III

I didn't quite get you. New to Power BI. Could you explain a little bit more.

amitchandak
Super User
Super User

@TinyElephant , you can use A, B, C as values or as the measure and use them as values

 

or unpivot this table and use 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.