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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jaylyn
Helper I
Helper I

Static Measure-ALL() and Removefilters() not working

I am working with Power BI and facing an issue with calculating turnover rates based on tenure buckets while keeping the average headcount for the last 12 months consistent across different tenure ranges. Specifically, the turnover rate should always use a static average headcount value, but the current setup causes the average headcount to vary based on the tenure bucket slicer applied.

 

Turnover Rate = terms_last_12months / avg headcount last_12months

 

  • Issue: When I place the avg headcount last_12months measure on a table with tenure buckets and terminations by tenure bucket, the average headcount value is being broken down by the tenure bucket slicer, rather than remaining static.

  • Desired Outcome: I want the avg headcount last_12months to remain static and consistent across all tenure buckets, regardless of the tenure bucket filter applied. This static average headcount should be used as the denominator in the turnover rate calculation, while the terminations should be accurately calculated based on the tenure bucket.

  • Consistency Check: If the turnover rate shows, for example, 50.1% on a card, the sum of the turnover rates when broken down by tenure range should also total 50.1%. The calculated turnover rates by tenure bucket should match the overall turnover rate displayed on the card.

Attempted Solutions

  • Using REMOVEFILTERS: Attempted to keep the average headcount static by removing filters on tenure buckets and dates, but this did not work as expected.
  • Using ALL and ALLSELECTED Functions: Tried various combinations of these functions to achieve a static average headcount, but encountered issues with maintaining the static nature across different contexts.
  • Creating a Static Table: Tried using a static table with a hardcoded value, but this is not ideal and does not update dynamically with the data.

 

I believe the best way to solve my situation is to make "avg headcount last_12months" static - please assist with this or show me another approach. 

 

measure tried.JPG

static.JPG

hc issue.JPG

 

 

6 REPLIES 6
jaylyn
Helper I
Helper I

sample data for avg hc

EEDHiredateTerminationDate
18/18/20031/1/2099
29/8/20031/1/2099
39/8/20031/1/2099
410/20/19871/1/2099
51/2/20041/1/2099
64/7/19801/1/2099
75/17/19941/1/2099
810/2/19881/1/2099
99/14/19941/1/2099
102/28/20051/1/2099
111/10/19951/1/2099
121/11/19957/1/2024
133/1/20211/1/2099
147/7/19981/1/2099
152/14/20111/1/2099
161/29/19961/1/2099
174/24/20061/1/2099
185/27/19971/1/2099
197/10/20061/1/2099
2010/1/20061/1/2099
211/12/20071/1/2099
223/26/20071/1/2099
233/20/19981/1/2099
244/3/20001/1/2099
252/4/19991/1/2099
2610/9/20071/1/2099
2711/2/20071/1/2099
286/7/20101/1/2099
297/5/20111/1/2099
3011/26/20071/1/2099
319/20/19991/1/2099
321/2/20081/1/2099
331/11/20081/1/2099
345/8/20001/1/2099
359/2/20081/1/2099
369/9/20091/1/2099
379/22/20091/1/2099
385/1/20101/1/2099
393/19/20071/1/2099
4010/2/20001/1/2099
4111/5/20071/1/2099
421/8/20011/1/2099
434/2/20011/1/2099
4411/9/20101/1/2099
451/7/20081/1/2099
4611/5/20011/1/2099
4711/5/20011/1/2099
481/6/20206/17/2024
495/16/20111/1/2099
505/23/20111/1/2099
517/1/20111/1/2099
527/11/20111/1/2099
536/29/20111/1/2099
547/11/20111/1/2099
5510/31/20111/1/2099
5610/31/20111/1/2099
5711/7/20111/1/2099
581/30/20121/1/2099
591/30/20121/1/2099
602/6/20121/1/2099
612/4/20191/1/2099
629/17/20121/1/2099
631/14/20131/1/2099
641/14/20131/1/2099
652/18/20131/1/2099
663/25/20241/1/2099
676/3/20131/1/2099
689/16/20131/1/2099
699/13/20131/1/2099
7010/14/20131/1/2099
7110/29/20131/1/2099
7212/9/20131/1/2099
731/1/20141/1/2099
741/6/20141/1/2099
751/6/20141/1/2099
761/20/20141/1/2099
771/20/20141/1/2099
781/21/20141/1/2099
792/3/20141/1/2099
802/17/20141/1/2099
814/21/20141/1/2099
823/24/20141/1/2099
833/31/20141/1/2099
846/24/202011/24/2023
855/12/20141/1/2099
867/8/20191/1/2099
875/19/20147/1/2024
886/2/20141/1/2099
896/16/20141/1/2099
907/14/20141/1/2099
919/3/20141/1/2099
928/25/20141/1/2099
938/21/20141/1/2099
947/1/20061/1/2099
953/10/20031/1/2099
9610/20/20141/1/2099
971/5/20151/1/2099
984/27/20151/1/2099
997/27/20151/1/2099
1006/1/20151/1/2099
1016/15/20151/1/2099
1027/6/20151/1/2099
1038/3/20151/1/2099
1048/3/20151/1/2099
1059/22/20216/21/2024
10611/2/20151/1/2099
10711/2/20151/1/2099
1082/8/20161/1/2099
1092/22/20161/1/2099
1102/22/20161/1/2099
1116/20/20161/1/2099
1127/11/20161/1/2099
1138/1/20161/1/2099
1148/28/20236/25/2024
11512/21/20161/1/2099
1162/6/20171/1/2099
1173/20/20171/1/2099
1184/24/20171/1/2099
1199/11/20171/1/2099
12010/23/20171/1/2099
12110/16/20171/1/2099
12210/30/20171/1/2099
12311/13/20171/1/2099
1241/29/20181/1/2099
1253/5/20181/1/2099
1265/7/20181/1/2099
12711/29/20101/1/2099
1288/8/20051/1/2099
12910/12/20091/1/2099
1303/15/20101/1/2099
1315/17/20101/1/2099
1327/5/20101/1/2099
1331/3/20111/1/2099
1343/21/20111/1/2099
1354/18/20111/1/2099
1364/25/20111/1/2099
13711/8/20231/1/2099
1387/4/20111/1/2099
13910/10/20111/1/2099
14012/19/20111/1/2099
14110/17/20231/1/2099
14211/5/20121/1/2099
14311/5/20121/1/2099
14412/3/20121/1/2099
1456/13/20131/1/2099
14611/11/20131/1/2099
14712/30/20131/1/2099
1488/22/20221/1/2099
1491/27/20141/1/2099
1504/28/20141/1/2099
15110/6/20141/1/2099
15210/20/20141/1/2099
1531/19/20151/1/2099
1542/9/20151/1/2099
1554/13/20151/1/2099
1564/20/20151/1/2099
15711/25/20021/1/2099
1585/29/20011/1/2099
1594/1/20041/1/2099
1604/26/20041/1/2099
16112/7/20011/1/2099
1621/7/20021/1/2099
1632/1/19991/1/2099
1642/25/20021/1/2099
1651/31/20001/1/2099
16610/1/20021/1/2099
1672/28/20031/1/2099
16810/11/20041/1/2099
1694/24/20061/1/2099
1705/1/20061/1/2099
1716/1/20061/1/2099
1722/15/19931/1/2099
1739/21/20061/1/2099
17411/1/20061/1/2099
17510/25/20061/1/2099
1765/15/20081/1/2099
17710/13/20081/1/2099
17811/3/20081/1/2099
1799/19/20111/1/2099
1802/1/20001/1/2099
1816/22/19851/1/2099
1829/21/19981/31/2024
18310/27/19984/30/2024
1849/14/20151/1/2099
1859/21/20151/1/2099
18611/12/20201/1/2099
18711/2/20151/1/2099
1887/18/20161/1/2099
1899/19/20161/1/2099
19010/31/20161/1/2099
19111/7/201610/4/2023
19211/28/20161/1/2099
1933/6/20171/1/2099
1943/6/20171/1/2099
1957/17/20171/1/2099
1969/29/20171/1/2099
1979/18/20171/1/2099
1987/15/20241/1/2099
19910/30/20171/1/2099
2004/4/20221/1/2099
20111/27/20171/1/2099
20211/13/20171/1/2099
2032/12/20181/1/2099
2043/26/20181/1/2099
2054/30/20181/1/2099
2064/30/20181/1/2099
2074/30/20181/1/2099
2086/1/20151/1/2099
2098/14/20151/1/2099
21010/13/20151/1/2099
21110/12/20151/1/2099
21211/17/20151/1/2099
2131/11/20165/23/2024
21410/12/20161/1/2099
21511/8/20161/1/2099
21612/12/20161/1/2099
2175/21/20171/1/2099
2188/21/20171/1/2099
2199/4/201712/16/2023
22010/16/20171/1/2099
2212/5/20181/1/2099
2224/10/20181/1/2099
2235/30/20181/1/2099
2247/2/20181/1/2099
22511/2/20151/1/2099
22611/30/20151/1/2099
22712/2/20151/1/2099
2284/11/20161/1/2099
2294/11/20161/1/2099
2308/29/20161/1/2099
2319/16/20161/1/2099
2323/28/20171/1/2099
2333/13/20171/1/2099
2343/13/20171/1/2099
2357/31/20231/1/2099
2364/24/20171/1/2099
2375/4/20171/1/2099
2386/25/20181/1/2099
2397/11/20181/1/2099
2407/23/20181/1/2099
2419/3/20181/1/2099
2429/10/20181/1/2099
24310/25/20181/1/2099
24410/25/20185/31/2024
24510/29/20181/1/2099
24611/5/20181/1/2099
24711/7/20181/1/2099
24811/12/20181/1/2099
24912/3/20181/1/2099
25012/17/201812/11/2023
2511/7/20191/1/2099
2525/25/20201/1/2099
2531/21/20191/1/2099
2543/11/20191/1/2099
2553/17/20191/1/2099
2563/25/20191/1/2099
2574/29/20191/1/2099
2585/28/20191/1/2099
2597/22/20191/1/2099
2608/19/20191/1/2099
26110/7/20191/1/2099
26210/7/20191/1/2099
26310/14/20191/1/2099
26410/23/20193/22/2024
26511/4/20191/1/2099
26611/11/20191/1/2099
26711/18/20191/1/2099
26810/13/20201/1/2099
2691/6/20201/1/2099
2701/20/20201/1/2099
2717/10/20231/1/2099
2727/9/20201/1/2099
2736/8/20201/1/2099
2746/22/20201/1/2099
27510/5/20201/1/2099
27610/5/20201/1/2099
27710/12/20201/1/2099
27810/26/20201/1/2099
27911/3/20201/1/2099
28012/21/20201/1/2099
2811/13/20211/1/2099
2821/4/20211/1/2099
2831/27/20211/1/2099
2841/25/20211/1/2099
2852/1/20211/1/2099
2862/1/20211/1/2099
2872/8/20211/1/2099
2884/5/20211/1/2099
2893/22/20211/1/2099
2905/3/20211/1/2099
2915/17/20211/1/2099
2925/3/20211/1/2099
2935/3/20211/1/2099
2945/3/20211/1/2099
2955/3/20211/1/2099
2965/17/20211/1/2099
2976/6/20221/1/2099
2985/17/20211/1/2099
2995/31/20211/1/2099
3006/7/202110/26/2023
3016/7/20211/1/2099
3026/28/20211/30/2024
3036/21/20211/1/2099
3047/19/20211/1/2099
3057/5/20211/1/2099
3067/5/20216/1/2024
3077/5/20211/1/2099
3087/27/20211/1/2099
3098/2/20211/1/2099

3108/9/20211/1/2099
3119/7/20211/1/2099
3128/16/20211/1/2099
3138/30/20211/1/2099
3149/27/20211/1/2099
3159/20/20213/19/2024
31610/4/20211/1/2099
31710/4/20211/1/2099
31810/5/20211/1/2099
31911/9/20211/1/2099
32011/22/20211/1/2099
32111/8/20211/1/2099
32211/15/20211/1/2099
32311/29/20211/1/2099
32412/13/20211/1/2099
32512/20/20211/1/2099
3261/17/20221/1/2099
3271/3/20221/1/2099
3281/17/202210/23/2023
3291/27/20221/1/2099
3301/17/20221/1/2099
3311/10/20221/1/2099
3321/17/20221/1/2099
3331/17/20223/15/2024
3341/17/20223/8/2024
3351/24/20221/1/2099
3361/24/20221/1/2099
3372/7/20221/1/2099
3382/21/20221/1/2099
3393/2/20221/1/2099
3404/4/20221/1/2099
3413/21/20221/1/2099
3425/2/20221/1/2099
3434/18/20221/1/2099
3444/25/20221/1/2099
3455/4/20221/1/2099
3464/26/20221/1/2099
3474/26/20221/1/2099
3485/2/20221/1/2099
3495/23/20227/10/2024
3505/9/20221/1/2099
3515/12/20221/1/2099
3526/9/20221/1/2099
3537/5/20221/1/2099
3547/5/20221/1/2099
3556/27/20221/1/2099
3566/20/20221/1/2099
3576/20/20221/1/2099
3586/29/20228/2/2024
3597/11/20221/1/2099
3607/11/20221/31/2024
3618/1/20221/1/2099
3627/18/20223/15/2024
3638/17/202210/7/2023
3647/18/20227/31/2024
3657/25/20222/29/2024
3668/1/20223/19/2024
3677/24/20221/1/2099
3688/12/20221/1/2099
3698/5/20221/1/2099
3708/8/20225/10/2024
3718/22/20221/1/2099
3728/15/20221/1/2099
3739/6/20221/1/2099
3748/22/202212/21/2023
3758/29/20221/1/2099
3769/19/20221/1/2099
3779/6/20221/1/2099
3789/5/20221/1/2099
3799/19/20222/14/2024
3809/19/20221/1/2099
3819/26/20221/1/2099
3829/26/20226/5/2024
38310/3/20221/1/2099
38410/3/20221/1/2099
38510/3/20221/1/2099
38610/4/20221/1/2099
38710/3/20221/1/2099
38810/10/20221/1/2099
38910/17/20221/1/2099
39011/8/20221/1/2099
39111/7/20221/1/2099
3921/9/20231/1/2099
39311/21/202210/13/2023
39411/28/20221/1/2099
3951/2/20231/1/2099
39612/19/20221/1/2099
39712/23/20221/1/2099
3981/3/20231/1/2099
3991/9/20231/1/2099
4001/5/20231/1/2099
4011/9/20231/1/2099
4022/6/20233/29/2024
4032/6/20231/1/2099
4042/6/20231/1/2099
4054/3/20231/1/2099
4064/24/20235/18/2024
4074/14/202312/30/2023
4085/1/20231/1/2099
4096/12/20231/1/2099
4105/22/20231/1/2099
4116/19/20231/1/2099
4126/26/20231/8/2024
4136/26/20231/1/2099
4146/12/20237/13/2024
4156/21/20231/1/2099
4166/26/20231/1/2099
4176/26/20235/18/2024
4186/30/20231/1/2099
4197/10/20231/1/2099
4207/5/20231/1/2099
4217/10/20231/1/2099
4227/3/20231/1/2099
4237/12/20231/1/2099
4247/10/20231/1/2099
4257/18/20231/1/2099
4267/24/20238/2/2024
4277/31/202310/26/2023
4287/31/20231/1/2099
4298/21/20231/1/2099
4307/31/20231/1/2099
4318/14/20231/1/2099
4328/14/20231/1/2099
4338/14/20231/1/2099
4348/7/20231/1/2099
4358/7/20231/1/2099
4368/14/20237/19/2024
4378/28/20231/1/2099
4389/5/20233/21/2024
4399/5/20235/10/2024
4409/11/20231/1/2099
4419/5/20231/1/2099
4429/11/20232/27/2024
4439/18/20231/1/2099
4449/14/20231/1/2099
4459/21/20231/1/2099
4469/21/20231/1/2099
4479/21/20231/1/2099
4489/21/20231/1/2099
4499/21/20231/1/2099
45010/3/20231/1/2099
45110/9/20231/1/2099
45210/16/202312/22/2023
45311/14/20231/1/2099
45410/31/20231/1/2099
45511/1/20231/1/2099
45611/6/20231/1/2099
45711/6/20231/1/2099
45811/7/20231/1/2099
45911/28/20231/1/2099
46011/6/20231/1/2099
46111/27/20231/1/2099
46211/14/20231/1/2099
46312/4/20231/1/2099
46412/4/20231/1/2099
46512/4/20231/1/2099
46612/11/20237/2/2024
46712/5/20231/1/2099
46812/11/20235/15/2024
46912/19/20231/1/2099
4701/16/20241/1/2099
4711/2/20241/1/2099
4721/2/20241/1/2099
4731/1/20241/1/2099
4741/9/20247/28/2024
4751/1/20241/1/2099
4761/8/20241/1/2099
4771/15/20241/1/2099
4781/9/20241/1/2099
4791/16/20241/1/2099
4801/15/20241/1/2099
4811/17/20241/1/2099
4822/5/20243/22/2024
4832/7/20241/1/2099
4843/11/20241/1/2099
4853/18/20241/1/2099
4864/1/20241/1/2099
4874/1/20241/1/2099
4884/15/20241/1/2099
4894/22/20241/1/2099
4904/22/20241/1/2099
4915/6/20241/1/2099
4925/1/20241/1/2099
4935/1/20241/1/2099
4945/1/20241/1/2099
4955/1/20241/1/2099
4965/6/20241/1/2099
4976/17/20241/1/2099
4985/10/20241/1/2099
4996/13/20241/1/2099
5006/12/20241/1/2099
5016/19/20241/1/2099
5026/24/20241/1/2099
5037/9/20241/1/2099
5047/15/20241/1/2099
5058/5/20241/1/2099
5067/29/20241/1/2099
5078/5/20241/1/2099
5087/29/20241/1/2099
5098/5/20241/1/2099
51010/12/20191/1/2099
51110/12/20191/1/2099
51210/12/20191/1/2099
51310/12/20191/1/2099
51410/12/20191/1/2099
51510/12/20191/1/2099
5167/24/20231/1/2099
51710/12/20191/1/2099
51810/12/20191/1/2099
51910/12/20191/1/2099
52010/12/20191/1/2099
52110/12/20191/1/2099
52210/12/20196/14/2024
52310/12/20191/1/2099
jaylyn
Helper I
Helper I

 

 

 

* disconnected date table (no relationship in data model with date and Employee table)
* Terms last 12M shows correctly when placed on table
with tenure bucket

* turnover shows correctly when placed on table/card without the tenure bucket- when tenure bucket is added, it is spliced incorrectly 

* In this example, 13.2% is what i should get

 

---------------------------

terms_last_12months (new) =

VAR currentdate = MAX('Date'[Date])

VAR end_of_current_month = EOMONTH(currentdate, 0)  

VAR tweleve_month_ago_start = EOMONTH(end_of_current_month, -12) + 1


RETURN


CALCULATE(

    DISTINCTCOUNT(Employee[EEID]),

 Employee[TerminationDate] >= tweleve_month_ago_start &&

   Employee[TerminationDate] <= end_of_current_month

)

 

 

0-3Months

terms last 12M = 4

avg hc last 12 months = 470

turnover = 4/470 = 0.851%

3-6Months

terms last 12M = 2

avg hc last 12 months = 470

turnover = 2/470 = 0.4255%

6-9Months

terms last 12M = 7

avg hc last 12 months = 470

turnover = 7/470 = 1.489%

9-12Months

terms last 12M = 5

avg hc last 12 months = 470

turnover = 5/470 =1.0638%

12-18Months

terms last 12M = 8

avg hc last 12 months = 470

turnover = 8/470 =1.702%

18-24Months

terms last 12M = 9

avg hc last 12 months = 470

turnover = 9/470 = 1.915%

24-30Months

terms last 12M = 7

avg hc last 12 months = 470

turnover = 7/470 = 1.489%

30-36Months

terms last 12M = 4

avg hc last 12 months = 470

turnover = 4/470 = 0.851%

36-42Months

terms last 12M = 1

avg hc last 12 months = 470

turnover = 1/470 = 0.213%

48+Months

terms last 12 months = 15

avg hc last 12 months = 470

turnover = 15/470 = 3.19%

avg hc last 12M = 470

term last 12 M = 62

turnover = 62/470 =13.2%

turnover % = 13.2%

 

turnoversamplepic.png

jaylyn
Helper I
Helper I

sample data:

thank you!

 

Tenure bucketEEID TenureMonthTerminationDateHiredate
  0-3 Months133/22/20211/4/2021
  0-3 Months212/5/20211/11/2021
  0-3 Months317/6/20215/31/2021
  0-3 Months418/3/20217/12/2021
  0-3 Months5211/23/20219/13/2021
  0-3 Months621/24/202211/15/2021
  0-3 Months713/9/20221/31/2022
  0-3 Months812/18/20221/24/2022
  0-3 Months904/26/20224/26/2022
  0-3 Months1018/26/20228/8/2022
  0-3 Months11211/4/20228/22/2022
  0-3 Months1209/3/20228/29/2022
  0-3 Months1334/30/20232/6/2023
  0-3 Months14310/26/20237/31/2023
  0-3 Months15212/22/202310/16/2023
  0-3 Months1623/22/20242/5/2024
  0-3 Months1702/22/20242/15/2024
  3-6 Months1855/3/202111/30/2020
  3-6 Months1934/9/202112/28/2020
  3-6 Months20512/7/20216/28/2021
  3-6 Months2154/1/202210/25/2021
  3-6 Months2253/25/202211/1/2021
  3-6 Months2368/8/20222/14/2022
  3-6 Months2449/2/20225/2/2022
  3-6 Months2562/21/20239/7/2022
  3-6 Months2653/10/202310/10/2022
  3-6 Months2766/30/20231/2/2023
  3-6 Months2862/27/20249/11/2023
  3-6 Months2955/15/202412/11/2023
  6-9 Months3092/18/20226/7/2021
  6-9 Months3172/14/20228/2/2021
  6-9 Months3277/21/20211/4/2021
  6-9 Months3376/13/202211/29/2021
  6-9 Months3466/3/202211/29/2021
  6-9 Months35610/17/20224/18/2022
  6-9 Months36812/31/20225/9/2022
  6-9 Months3782/28/20237/5/2022
  6-9 Months3869/9/20233/6/2023
  6-9 Months39912/30/20234/14/2023
  6-9 Months4071/8/20246/26/2023
  6-9 Months4173/21/20249/5/2023
  6-9 Months4285/10/20249/5/2023
  6-9 Months4377/2/202412/11/2023
  6-9 Months4477/28/20241/9/2024
 9-12 Months45106/25/20248/28/2023
 9-12 Months46113/1/20224/12/2021
 9-12 Months471110/25/202111/16/2020
 9-12 Months48104/30/20216/24/2020
 9-12 Months49112/4/20223/8/2021
 9-12 Months50101/24/20224/12/2021
 9-12 Months51124/15/20224/26/2021
 9-12 Months5295/9/20228/2/2021
 9-12 Months53128/19/20228/30/2021
 9-12 Months541010/8/202211/29/2021
 9-12 Months551011/2/20221/17/2022
 9-12 Months561011/14/20221/17/2022
 9-12 Months57105/2/20237/11/2022
 9-12 Months58116/2/20237/18/2022
 9-12 Months5996/30/20239/26/2022
 9-12 Months60129/16/20239/26/2022
 9-12 Months611110/13/202311/21/2022
 9-12 Months62115/18/20246/26/2023
 9-12 Months63117/19/20248/14/2023
12-18 Months64184/18/202210/29/2020
12-18 Months65174/19/202111/18/2019
12-18 Months66156/18/20213/23/2020
12-18 Months671711/23/20216/24/2020
12-18 Months681412/3/202110/5/2020
12-18 Months691210/29/202111/2/2020
12-18 Months70152/25/202212/14/2020
12-18 Months71165/13/20221/5/2021
12-18 Months72164/29/20221/4/2021
12-18 Months73147/29/20226/7/2021
12-18 Months741711/10/20226/7/2021
12-18 Months751610/11/20226/7/2021
12-18 Months761610/21/20226/21/2021
12-18 Months77126/10/20226/14/2021
12-18 Months78153/31/20231/10/2022
12-18 Months79133/31/20233/7/2022
12-18 Months80156/17/20233/16/2022
12-18 Months81137/14/20236/6/2022
12-18 Months82159/8/20236/13/2022
12-18 Months831410/7/20238/17/2022
12-18 Months841612/21/20238/22/2022
12-18 Months85172/14/20249/19/2022
12-18 Months86143/29/20242/6/2023
12-18 Months87135/18/20244/24/2023
12-18 Months88137/13/20246/12/2023
12-18 Months89138/2/20247/24/2023
18-24 Months90227/30/202110/7/2019
18-24 Months91206/11/202110/8/2019
18-24 Months92239/2/202210/5/2020
18-24 Months93201/13/20235/24/2021
18-24 Months94201/1/20235/24/2021
18-24 Months95223/21/20235/27/2021
18-24 Months96203/11/20237/5/2021
18-24 Months97238/18/20239/13/2021
18-24 Months98237/28/20238/23/2021
18-24 Months99182/25/20238/24/2021
18-24 Months100196/9/202311/18/2021
18-24 Months101219/1/202311/29/2021
18-24 Months1022110/23/20231/17/2022
18-24 Months103219/29/20231/17/2022
18-24 Months104191/31/20247/11/2022
18-24 Months105203/15/20247/18/2022
18-24 Months106192/29/20247/25/2022
18-24 Months107203/19/20248/1/2022
18-24 Months108215/10/20248/8/2022
18-24 Months109216/5/20249/26/2022
24-30 Months110294/16/202112/12/2018
24-30 Months111261/5/202212/2/2019
24-30 Months112252/2/20221/20/2020
24-30 Months113299/30/20235/17/2021
24-30 Months1142910/26/20236/7/2021
24-30 Months115263/15/20241/17/2022
24-30 Months116263/8/20241/17/2022
24-30 Months117267/10/20245/23/2022
24-30 Months118268/2/20246/29/2022
24-30 Months119257/31/20247/18/2022
30-36 Months120336/21/20249/22/2021
30-36 Months121334/8/20238/3/2020
30-36 Months122321/30/20246/28/2021
30-36 Months123356/1/20247/5/2021
30-36 Months124303/19/20249/20/2021
36-42 Months1254211/24/20236/24/2020
36-42 Months126385/1/20213/5/2018
36-42 Months1273610/7/202210/12/2019
36-42 Months1283710/28/202210/12/2019
36-42 Months1293710/28/202210/12/2019
36-42 Months130401/14/202310/12/2019
36-42 Months1313710/28/202210/12/2019
42-48 Months132442/25/20227/2/2018
42-48 Months133477/19/20229/17/2018
42-48 Months134467/15/202210/8/2018
42-48 Months135458/12/202211/19/2018
   48+ Months1364099/30/20232/19/1990
   48+ Months1373597/1/20241/11/1995
   48+ Months1382861/28/20228/3/1998
   48+ Months1391861/3/20229/11/2006
   48+ Months1401523/8/20229/9/2009
   48+ Months1411503/8/202310/28/2010
   48+ Months142546/17/20241/6/2020
   48+ Months1431479/30/20238/29/2011
   48+ Months1441468/18/20238/29/2011
   48+ Months14513410/1/20229/20/2011
   48+ Months1461175/28/202110/31/2011
   48+ Months1471263/21/202211/11/2011
   48+ Months1481201/6/20232/18/2013
   48+ Months14911811/11/20223/11/2013
   48+ Months1501017/9/20213/29/2013
   48+ Months1511018/2/20214/29/2013
   48+ Months1521138/12/20225/6/2013
   48+ Months1531117/1/20235/28/2014
   48+ Months1541237/1/20245/19/2014
   48+ Months155945/26/20228/25/2014
   48+ Months1569912/30/202211/10/2014
   48+ Months157744/27/20213/19/2015
   48+ Months158736/5/20216/22/2015
   48+ Months159749/29/20219/14/2015
   48+ Months160768/14/20235/29/2017
   48+ Months16112111/8/202112/12/2011
   48+ Months1621051/3/20225/13/2013
   48+ Months1638112/31/20215/18/2015
   48+ Months1643232/1/20227/17/1995
   48+ Months1652332/14/20221/6/2003
   48+ Months16621610/3/20221/10/2005
   48+ Months16719510/3/20219/21/2005
   48+ Months1682184/27/20236/15/2005
   48+ Months1694124/1/20235/29/1989
   48+ Months1701986/17/20223/24/2006
   48+ Months1711849/30/20218/11/2006
   48+ Months1723816/1/20222/20/1991
   48+ Months1733091/31/20249/21/1998
   48+ Months1743114/30/202410/27/1998
   48+ Months1753494/1/20238/15/1994
   48+ Months1763299/25/20219/19/1994
   48+ Months1777410/29/202110/12/2015
   48+ Months178795/18/202311/7/2016
   48+ Months1798410/4/202311/7/2016
   48+ Months180625/11/20223/27/2017
   48+ Months181625/26/20224/24/2017
   48+ Months182609/2/20229/29/2017
   48+ Months1831025/23/20241/11/2016
   48+ Months184485/1/20215/21/2017
   48+ Months185746/9/20235/21/2017
   48+ Months1867612/16/20239/4/2017
   48+ Months187845/27/20226/29/2015
   48+ Months188814/19/20228/12/2015
   48+ Months189948/4/202311/25/2015
   48+ Months190577/16/202111/8/2016
   48+ Months191628/29/20238/6/2018
   48+ Months192685/31/202410/25/2018
   48+ Months1936112/11/202312/17/2018
   48+ Months194579/8/20231/7/2019
   48+ Months195546/2/20231/7/2019
   48+ Months196543/22/202410/23/2019
   48+ Months197576/14/202410/12/2019

 

 

rajendraongole1
Super User
Super User

Hi @jaylyn - create a measure that calculates the average headcount over the last 12 months without being affected by the tenure bucket slicer.

Static Avg Headcount Last 12 Months =
CALCULATE(
[Avg Headcount Last 12 Months],
REMOVEFILTERS('Tenure Table'[Tenure Bucket])
)

 

use the static average headcount measure in your turnover rate calculation measure

Turnover Rate =
DIVIDE(
[Terms Last 12 Months],
[Static Avg Headcount Last 12 Months],
0
)

 

Hope this works, still issue exist, please share the sample data for reference .





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi, Raj- 

i did do that but it's still behaving the same, it really doesn't make sense that the removefilters isn't working. Here is a calculation of my avg hc last 12M just to make sure it's not the problem:

 

jaylyn_0-1723567198954.png

Active-1ago =

CALCULATE(
    DISTINCTCOUNT('Employee'[EED]),
  Employee[Hiredate] <= EOMONTH(MAX('Date'[Date]), -1) &&
  Employee[TerminationDate]> EOMONTH(MAX('Date'[Date]), -1)
)
 
----
Active-10ago =

CALCULATE(
    DISTINCTCOUNT('Employee'[EEID]),
  Employee[Hiredate] <= EOMONTH(MAX('Date'[Date]), -10) &&
  Employee[Termination_Date]> EOMONTH(MAX('Date'[Date]), -10)
)
 
i have this measure 12x (including current-month) - each time i'm changing the -10 to -2 or -3 and etc.
 
 
avg headcount last_12months =
([Active] +
[Active-1ago] +
[Active-2ago] +
[Active-3ago] +
[Active-4ago] +
[Active-5ago] +
[Active-6ago] +
[Active-7ago] +
[Active-8ago] +
[Active-9ago]+
[Active-10ago] +
[Active-11ago]
)
/ 12


//calculates avg HC for last 12 months, including current month
 
 
here is my tenure bucket:
 
Tenure bucket =

SWITCH(
    TRUE(),
Employee[TenureMonth] <= 3, "  0-3 Months",
    Employee[TenureMonth] <= 6, "  3-6 Months",
    Employee[TenureMonth] <= 9, "  6-9 Months",
    Employee[TenureMonth] <= 12, " 9-12 Months",
    Employee[TenureMonth] <= 18, "12-18 Months",
    Employee[TenureMonth] <= 24, "18-24 Months",
    Employee[TenureMonth] <= 30, "24-30 Months",
    Employee[TenureMonth] <= 36, "30-36 Months",
    Employee[TenureMonth] <= 42, "36-42 Months",
    Employee[TenureMonth] < 48, "42-48 Months",
    TRUE(), "   48+ Months"  // Adjusted to three spaces before "48+ Months"
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors