Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am working with a dataset that has various tasks that need to be completed on a single invoice. I need to create a pivot table that counts the number of times each employee's name shows under each task. However the data set has names of people (i.e. Erin) that I don't need to include in the pivot table. The only names I need in the pivot table are shown under the "employee" table (a.k.a. Table 2). I'm trying to make this sheet easy to work with so as new employees come along we can simply add their name to the "employee list" and it will add them into the pivot table.
I have tried countrows, counta, and other various measures in my data model but have not been able to get it to work yet. With not being able to create relationships between the two tables it is makeing it difficult to filter how I need it to show. The closest I can get only takes one column's data into account and the will then duplicate that into the next columns reguardless of the field I select to be in the next column.
Here is a screenshot of a sample data sheet I put together to illustrate the problems I am having. I have also created a manual caluclation at the bottom to illistrate how I would like the data to show.
Solved! Go to Solution.
Hey pls check below:-
Select last three columns and "Unpivot" them only in Power-Query (Select them at the same time and Use Right Click).
Then Insert a Matrix Table and place field into that as shown below.
At the last try to create this measure and place that measure into the Matrix table.
I hope i got your question correctly and answered. Thanks!!
I completly forgot about unpivot option. That got me what I needed. Thank you so much for your help!
Hey pls check below:-
Select last three columns and "Unpivot" them only in Power-Query (Select them at the same time and Use Right Click).
Then Insert a Matrix Table and place field into that as shown below.
At the last try to create this measure and place that measure into the Matrix table.
I hope i got your question correctly and answered. Thanks!!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |