Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try disconnect the relationship between date table and fact table. And then try the below measure.
Distinct count of active employees =
VAR _active =
SUMMARIZE (
FILTER (
FactEmployement,
(
'FactEmployement'[Ansatt fra] <= MAX ( 'DimDates'[Dates] )
&& OR (
( FactEmployement[Ansatt til] >= MIN ( 'DimDates'[Dates] ) ),
ISBLANK ( FactEmployement[Ansatt til] )
)
)
),
FactEmployement[Ansattnr]
)
VAR result =
COUNTROWS ( _active )
RETURN
result
Hi,
Share some data and show the expected result.
Hi,
I am not sure how your datamodel looks like, but please try disconnect the relationship between date table and fact table. And then try the below measure.
Distinct count of active employees =
VAR _active =
SUMMARIZE (
FILTER (
FactEmployement,
(
'FactEmployement'[Ansatt fra] <= MAX ( 'DimDates'[Dates] )
&& OR (
( FactEmployement[Ansatt til] >= MIN ( 'DimDates'[Dates] ) ),
ISBLANK ( FactEmployement[Ansatt til] )
)
)
),
FactEmployement[Ansattnr]
)
VAR result =
COUNTROWS ( _active )
RETURN
result
Thank you so much! This is exactly what I was looking for!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |