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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello members,
I need your help to calculate future headcount based on monthly planning for next year.
I have a table per position and employee ID with the headcount at the end of 2021 and the new hires per month for 2022
Dividion | Position | Employee_ID | Headcount 2021 | month | New Hires |
IT | Web Adminitrator | 123456 | 1 | 1/1/2022 | 1 |
IT | Web Adminitrator | 123456 | 1 | 1/2/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/3/2022 | 3 |
IT | Web Adminitrator | 123456 | 1 | 1/4/2022 | 2 |
IT | Web Adminitrator | 123456 | 1 | 1/5/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/6/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/7/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/8/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/9/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/10/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/11/2022 | 0 |
IT | Web Adminitrator | 123456 | 1 | 1/12/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/1/2022 | -1 |
FINANCE | Accountant | 123457 | 3 | 1/2/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/3/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/4/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/5/2022 | 2 |
FINANCE | Accountant | 123457 | 3 | 1/6/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/7/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/8/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/9/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/10/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/11/2022 | 0 |
FINANCE | Accountant | 123457 | 3 | 1/12/2022 | 0 |
I need to add to the 2021 headcount the every month new hirings.
The result i am seeking is:
1/1/2022 | 1/2/2022 | 1/3/2022 | 1/4/2022 | 1/5/2022 | 1/6/2022 | 1/7/2022 | 1/8/2022 | 1/9/2022 | 1/10/2022 | 1/11/2022 | 1/12/2022 | |
Web Adminitrator | 2 | 2 | 5 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 |
Accountant | 2 | 2 | 2 | 2 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
Do you think thats possible?
Thank you very much in advance!
Solved! Go to Solution.
I found the dax i was looking for. I am writting it here in case someone needs it 🙂
I found the dax i was looking for. I am writting it here in case someone needs it 🙂
So i have manage to achive what I want only for 1 month. I need cumulative to achive it for all months.
This is the calculated column i created:
@Dimitris_Kats , Hope you are using a date table for this one. So for head count 2021 , you remove join with date table using cross filter or create a measure like
calculate([Head count], filter(All('Date') , 'date'[Year] =2021))
You can add this to your 2022 measure
Hello and thank you very much for your reply.
I am not using a date table. I have the headcount of 31/12/21 in this table and I have also dates in this table for 2022 new hires.
I don't need the 2021 headcount, I already have it. I need to cumulative calculate the headcount per month for 2022 adding the new hirings.
Thank you in advance
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.