Hello -
I am using an employee's tenure in months to set targets for efficiency.
3 efficiency measures are being calculated, and there are different targets for each. Let's call them: Efficiency Measure 1, Efficiency Measure 2, and Efficiency Measure 3
I created the following table in Power BI to avoid endless IF or SWITCH statements to pick up the correct efficiency target. Also makes it easier when things change.. The "No" column is so I can sort correctly when I display the targets in a visual.
No | Range Start | Range End | Tenure Bucket | Efficiency Measure | Efficiency Target |
1 | 0 | 3 | 0-3 Mos | Efficiency Measure 1 | 0.65 |
2 | 3 | 6 | 3-6 Mos | Efficiency Measure 1 | 0.75 |
3 | 6 | 12 | 6 mos-1 yr | Efficiency Measure 1 | 0.95 |
4 | 12 | 24 | 1-2 yrs | Efficiency Measure 1 | 1 |
5 | 24 | 36 | 2-3 yrs | Efficiency Measure 1 | 1 |
6 | 36 | 3 yrs + | Efficiency Measure 1 | 1 | |
1 | 0 | 3 | 0-3 Mos | Efficiency Measure 2 | 0.65 |
2 | 3 | 6 | 3-6 Mos | Efficiency Measure 2 | 0.75 |
3 | 6 | 12 | 6 mos-1 yr | Efficiency Measure 2 | 0.95 |
4 | 12 | 24 | 1-2 yrs | Efficiency Measure 2 | 1 |
5 | 24 | 36 | 2-3 yrs | Efficiency Measure 2 | 1 |
6 | 36 | 3 yrs + | Efficiency Measure 2 | 1 | |
1 | 0 | 3 | 0-3 Mos | Efficiency Measure 3 | 0.8 |
2 | 3 | 6 | 3-6 Mos | Efficiency Measure 3 | 0.9 |
3 | 6 | 12 | 6 mos-1 yr | Efficiency Measure 3 | 0.9 |
4 | 12 | 24 | 1-2 yrs | Efficiency Measure 3 | 0.9 |
5 | 24 | 36 | 2-3 yrs | Efficiency Measure 3 | 0.9 |
6 | 36 | 3 yrs + | Efficiency Measure 3 | 0.9 |
If I have a table by date, employee, Line of Business with the tenure in months calcuated for each employee, how do I link to this table to get the correct target - should I use a filter?
Date | Employee ID | Tenure in Months | Line of Business |
1/1/2022 | 123456 | 27 | LOB1 |
1/1/2022 | 345678 | 8 | LOB1 |
For example, if an employee's tenure is 27 months, and I'm looking at Efficiency Measure 1 (which is selected on the page), the target is 1.
Thanks in advance for any help.
Solved! Go to Solution.
You can tackle this with a measure using a combination of CALCULATE with filters and LOOKUPVALUE.
It would look something like
Awesome. Thank you.
You can tackle this with a measure using a combination of CALCULATE with filters and LOOKUPVALUE.
It would look something like
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
241 | |
56 | |
49 | |
45 | |
44 |
User | Count |
---|---|
282 | |
211 | |
82 | |
76 | |
75 |