Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
86 | |
68 | |
51 | |
32 |
User | Count |
---|---|
126 | |
112 | |
72 | |
64 | |
46 |