Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have 2 tables :
Employees
Person | Location |
x1 | A |
x2 | A |
x3 | B |
x4 | B |
* <-> 1
Adress
Location | Country |
A | xxxxxxxx |
B | xxxxxxxx |
C | xxxxxxxx |
How do I count the number of locations that have no employees ?
Thanks for your help !
Solved! Go to Solution.
hi @Rinn
do you want get the count of location or location IDs where there isn't any employees?
Create 2 measures to get the count of employees in each location. and where filter out location where the count is >0.
First measure.
Count = COUNT(employees[Location])
second measure.
count2 =
CALCULATE(
[Count]+0)
Now use the visual filter to get only those records where count2 is 0.
hi @Rinn
do you want get the count of location or location IDs where there isn't any employees?
Create 2 measures to get the count of employees in each location. and where filter out location where the count is >0.
First measure.
Count = COUNT(employees[Location])
second measure.
count2 =
CALCULATE(
[Count]+0)
Now use the visual filter to get only those records where count2 is 0.
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
39 |