March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi!
I need help to calculate the unique number of people working only on one type of BusinessUnits, but sometimes staff work on the same type of Unit but in different departments.
For example
Sarah works in Sales in two departments and Jenni also works in Sales but in one department. In total I have four staff but in the results when I filter on Sales BusinessUnit I only want to get 2 in the results, because only Sarah and Jenni work in Sales, and not in any other Unit.
Is it possible?
Table
PersonID | FirstName | LastName | BusinessUnit | Department |
556677 | Matt | Olsen | Sales | Department 1 |
556677 | Matt | Olsen | Production | Department 1 |
775566 | Jenni | Grant | Sales | Department 1 |
445566 | Daniel | LaRusso | Consultant | Department 1 |
994455 | Sarah | Connor | Sales | Department 1 |
994455 | Sarah | Connor | Sales | Department 2 |
Solved! Go to Solution.
There you go 🙂
Proud to be a Super User!
why can’t we count Matt, he works in the sales department?
556677 | Matt | Olsen | Sales | Department 1 |
Matt also works on another Unit, i only want to show the result of people working on one type of unit.
I would recommend you to create a new column to differentiate that by concatenating PersonID with Business Unit. Then create a measure to distinct count this new column (Measure = DISTINCTCOUNT([ColumnName]). Then create a visual and add only the Person ID and then the Measure. You can know use the filter pane to filter the visual for Measure is 1.
Proud to be a Super User!
Could you elaborate further or show me how to do it?
This is amazing! Thank you!
Is it possible to get the result of 3 to show on a card?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
90 | |
86 | |
76 | |
49 |
User | Count |
---|---|
167 | |
149 | |
99 | |
73 | |
57 |