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
Hi,
I have a table employees with two relevant fields start and end.
I have a line chart showing the numbers of new and leaving employees per month over a year. I am looking to add a thind line showing the number of employees employed on the last day of each of those months.
Anyone help me with this?
Solved! Go to Solution.
You may refer to the following measure.
Measure =
VAR d =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( Table1[employeeId] ),
FILTER ( Table1, Table1[start] = d )
)
+ 0
You may refer to the following measure.
Measure =
VAR d =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( Table1[employeeId] ),
FILTER ( Table1, Table1[start] = d )
)
+ 0
Create a table with the end dates for each month. Add a calculated column where you COUNT or COUNTROWS the number of rows that have an end date less than that month. Something along those lines should work.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |