Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Sorry i am a beginner in PowerBI without formal traning.
I established 2 tables:
1) Employee table (every employee is a uniqle row) - they Date Join and Last Working Date (either with a Date or just blank for active employee).
2) Date Table (every single day with category in terms of Years, Quarter, etc,)
I would like to set up 3 measures for counting
1) active headcount as of 1st day of each month,
2) active headcount as of the last day of each month, and
3) leavers in each month
How can i set up these 3 measures?
@Anonymous
Can you post sample data of both tables?
Thanks so much Rocky! My Employee data is like below:
And my Calendar table is as follows:
My question is:
I have searched for many sites and try to use the below formular but the result is not correct:
Active Employees =
CALCULATE(
COUNTA(Employee[p_empno]), FILTER(Employee, (Employee[Date_Join] <= LASTDATE('Calendar'[DateKey]) && (Employee[Last_Working_Date]>= FIRSTDATE('Calendar'[DateKey]) || ISBLANK(Employee[Last_Working_Date])))))
This report will be provided each month with an updated database. Thus the Date will be changed from 31 Jan 2018 to 28 Feb 2018 next time. How could I manage the dashboard with changing the dates and then the data will be reflected correctly?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |