Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
125 | |
108 | |
60 | |
55 |