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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
I have a rolling Head Count Formula that calculates the total number of active staff at any given Date.
What I would like to do is compare the Head Counts for two different date peroids.
Example, the total Head Count at 01/01/2023 & 01/01/2022, so I can identify differences between each year/month.
Outcome Example below, I would ideally, like this in a Table.
Division | 2024 Count | 2023 Count | People Growth %
Risk | 36 | 42 | 6%
Finance | 27 | 25 | -2%
My rolling Head Count:
hi @HRAnaly123
"Example, the total Head Count at 01/01/2023 & 01/01/2022, so I can identify differences between each year/month."
Sorry I couldn't figure out the logic for using just any date/month/year. Below solution does it for CurrentYear Vs Previous Year. If you can share more example to help me understand what you want to do.
I have only one relationship active betwene Calendar and Employee table on HireDate(One to many, single direction)
Measure1
------------
1 | Finance | 2023-01-05 | 2023-01-05 |
2 | HR | 2023-03-15 | |
3 | IT | 2023-06-28 | 2024-01-15 |
4 | Finance | 2023-08-15 | |
5 | HR | 2023-05-22 | 2023-05-22 |
6 | IT | 2023-10-16 | |
7 | Finance | 2023-11-15 | 2023-11-15 |
8 | HR | 2023-12-24 | |
9 | IT | 2024-01-06 | 2024-01-06 |
10 | Finance | 2024-02-06 | 2024-02-06 |
11 | HR | 2024-01-19 | |
12 | IT | 2024-01-22 | 2024-01-22 |
13 | Finance | 2023-09-06 | 2023-09-06 |
14 | IT | 2023-08-14 | |
15 | HR | 2023-07-11 | 2023-07-11 |
16 | Finance | 2023-10-11 | |
17 | HR | 2023-04-06 | 2023-04-06 |
18 | IT | 2023-01-05 | 2024-01-15 |
19 | HR | 2023-03-15 | 2024-01-15 |
20 | Finance | 2023-06-28 | 2024-01-15 |
hi @HRAnaly123
Please share some sample date or pbix file with any sensitive information removed, along with information on how your data model is setup.
Hi Talespin,
I ammended my original post to cover your requriements.
Thank you
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
19 | |
15 | |
7 | |
6 |