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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ShashankKalluri
Frequent Visitor

Dynamic assigning of an employee based on days worked

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 IDMonth ManDays
C1001Jan'1812
C1001Feb'1810
C1001Mar'1818
C1002Feb'1810
C1002Mar'1820
C1003Mar'184

 

Monthly engagement threshold Data: 

MonthHeavilyEngaged(in days)LightlyEngaged(in days)
Jan'18155
Feb'18146
Mar'18177

 

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 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

1 REPLY 1
Anonymous
Not applicable

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors