The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Proud to be a Super User! | |
Awesome. Thank you.
You can tackle this with a measure using a combination of CALCULATE with filters and LOOKUPVALUE.
It would look something like
Proud to be a Super User! | |
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
122 | |
89 | |
75 | |
55 | |
45 |
User | Count |
---|---|
134 | |
120 | |
76 | |
65 | |
64 |