Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ritendersingh2
Regular Visitor

Need help in calculating headcount

Hey There ,

 

I need some help to calculate the future Headcount based on the actual headcount ,future joiners and furture endings ..

So, I have 3 table , Actual Headcount till Mar , Future starts and Furture ends ..

 

now I need to predict Headcount for future , 

for April - Mar HC + April Joiners- April Endings and that will become my HC for April

for May - April HC +May Joiners- Mat Endings

 

ritendersingh2_0-1712588038579.png

 

1 ACCEPTED SOLUTION

Hi,

I have solved a similar problem in the attached files.  Please review my solution and adapt it to your needs.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you @Ashish_Mathur for your response,

I assume this will work

DateActual HCFuture StartsFuture EndingsFuture HCCalulation
Dec-232136  2136 
Jan-242019  2019 
Feb-241964  1964 
Mar-241672  1672 
Apr-24 2131381747=E5+C6-D6
May-24 252471525=E6+C7-D7
Jun-24  3131212=E7+C8-D8
Jul-24  1571055=E8+C9-D9
Aug-24     
Sep-24     
Oct-24     
Nov-24     
Dec-24     

Hi,

I have solved a similar problem in the attached files.  Please review my solution and adapt it to your needs.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur  ,It worked .

PhilipTreacy
Super User
Super User

Hi @ritendersingh2 

 

Download example PBIX file

 

You haven't provided any data so I'm guessing how your tables look and the data contained in them.  But using the sample data I created in the PBIX file linked above, you can get what you want with these measures

 

Prev HC = CALCULATE(SUM('Actual Headcount'[Actual HC]), PREVIOUSMONTH('Actual Headcount'[Date]))

 

Future HC = [Prev HC] + SUM('Future Starts'[Future Starts]) - SUM('Future Endings'[Future Endings])

 

headcount.png

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thank you for your response @PhilipTreacy 

I should have explained the situtaion in details ;

So when we are calulating headcount for May, calculation should be Aprils new new headcount(1743 in this case)+ May's Joiners- May's endings..


DateActual HCFuture StartsFuture EndingsFuture HCCalulation
Dec-232136  2136 
Jan-242019  2019 
Feb-241964  1964 
Mar-241672  1672 
Apr-24 2131381747=E5+C6-D6
May-24 252471525=E6+C7-D7
Jun-24  3131212=E7+C8-D8
Jul-24  1571055=E8+C9-D9
Aug-24     
Sep-24     
Oct-24     
Nov-24     
Dec-24     

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors