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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Hiring Rate Dynamic Calculation

I want to calculate the hiring rate as a dynamic measure.

 

Ex: Hiring rate in 2018 = # of hires in 2018/ [(total hires on 12/31/2017 + Total Hires on 7/31/2018)/2]

Similarly on Sept 1, 2018, the bolded date needs to be changed dynamically to 8/31/2018 and on Oct 1, 2018 it needs to be changed to 09/30/2018 and so on.

 

For previous years, it needs to be for example, Hiring rate in 2017 = # of Hires in 2017/([total hires on 12/31/2016 + total hires on 12/31/2017]/2)

 

The denominator part is an average of the count on those two dates. Is there any way this can be wriiten as an expression? Or any other way for this action to be performed?

 

Thank You!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous create a measure something like this

 

HiringRate = 

VAR EmpCY = Calculate(Count of employees, filter(where date is max date in dataset & year = year(date field))

VAR EmpPY = Calculate(Count of employees, filter(where date is max date in dataset in previous year & year = year(date field)-1)

RETURN EmpCY/((EmpPY+EmpCY)/2)

 

If you need more clarifications/exact formula, please post same dataset and power bi file.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous create a measure something like this

 

HiringRate = 

VAR EmpCY = Calculate(Count of employees, filter(where date is max date in dataset & year = year(date field))

VAR EmpPY = Calculate(Count of employees, filter(where date is max date in dataset in previous year & year = year(date field)-1)

RETURN EmpCY/((EmpPY+EmpCY)/2)

 

If you need more clarifications/exact formula, please post same dataset and power bi file.

Anonymous
Not applicable

Thank you! I also tried creating a date table and linking all my dates there. That also worked.

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 Solution Authors
Top Kudoed Authors