Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
HI there,
I have employees with their mandays data every month, and I have to categorize them into HeavilyEngaged, CasuallyEngaged, LightlyEngaged based on thresholds. Say if an employee in the month of Jan worked more than 16 days then he/she is a heavilyengaged staff, else if an employee worked less than 5 days in Jan, then Lightly Engaged. This threshold changes with every month and is not consistent across all months in an year.
Employee Mandays Table:
Employee ID | Month | ManDays |
C1001 | Jan'18 | 12 |
C1001 | Feb'18 | 10 |
C1001 | Mar'18 | 18 |
C1002 | Feb'18 | 10 |
C1002 | Mar'18 | 20 |
C1003 | Mar'18 | 4 |
Monthly engagement threshold Data:
Month | HeavilyEngaged(in days) | LightlyEngaged(in days) |
Jan'18 | 15 | 5 |
Feb'18 | 14 | 6 |
Mar'18 | 17 | 7 |
I have a timeline slicer on Month which would give me the distribution of Heavilyengaged, casuallyengaged, lightlyengaged in that month. Suppose if the user selects Jan and Feb both then we should check the sum of thresholds for both the months and compare it with the sum of mandays for two months and then categorise in HeavilyEngaged/Casuallyengaged/Lightly engaged.
For example: In the above data, If the user selects Jan and Feb, C1001 will have 22days in total which will make him a CasuallyEngaged (<29 days & >11 days) staff, and C1002 who worked for 10 days in 2 months combined, would be a LightlyEngaged worker (<11 days). I would need the classification of a worker into each of the engagement category dynamic with resoect to the month /group of months selected.
Would be very grateful if anyone can help me out in this problem? @v-shex-msft
Solved! Go to Solution.
User | Count |
---|---|
47 | |
26 | |
22 | |
17 | |
15 |
User | Count |
---|---|
55 | |
34 | |
18 | |
17 | |
15 |