This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I have a data model like the following:
Dimension Employee 1-* Fact Sales *-1 Dimension Date
Dimension Employee:
Emp Key Emp ID ...
Dimension Date:
Date Key Date ...
Fact Sales:
Emp Key Date Key Sale Amount
I want to get a head count of all employees that were valid for some date range (as determined by a selection of 'Dimension Date'[Date]). This is very similar to the solution in the following post:
Solved: Creating a measure based on a dimension table - Microsoft Power BI Community
So, I have attempted:
Head Count =
COUNTROWS(
SUMMARIZE(
'Fact Sales'
,'Dimension Employee'[Emp ID]
)
)
However, this isn't returning the correct value. It returns the same value for every selection of 'Dimension Date'[Date]. How can I resolve this? Note: Turning on bidirectional crossfiltering or replicating [Emp ID] into the fact table are not acceptable solutions.
Solved! Go to Solution.
@Anonymous , does Dimension Employee has a hire and termination date? because then solution is different like
if not
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@Anonymous , does Dimension Employee has a hire and termination date? because then solution is different like
if not
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 22 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 43 | |
| 41 | |
| 39 | |
| 21 | |
| 19 |