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

Find available employees

Hi,

I have a big data set, below is a small sub-set of it:

Sr_NoIDClientProjectStart DateEnd
Date
FTEName
2501Client 1Training1/29/20182/4/20181ABC
17221Client 2Implementation4/2/20187/29/20180.2ABC
17231Client 3Implementation2/5/20184/1/20181ABC
17241Client 4Implementation7/30/20183/31/20190.2ABC
28441Client 3Phase24/2/201812/30/20180.8ABC
2322Client 4Internal Operations2/1/20166/30/20190.1DEF
19582Client 5Phase 111/27/20174/22/20180.5DEF
19592Client 6Phase 14/23/201812/30/20180.5DEF
7373Client 7Project 11/22/20182/25/20180.5XYZ
9443Client 8Project 22/26/201810/28/20180.5XYZ
13783Client 9Project 34/13/20154/26/20200.25XYZ
13863Client 10Project 48/29/20164/26/20200.25XYZ

In the above data:

1) FTE is showing the % of time the resource is tagged/allotted to any particular project. So 1 means 100% and 0.5 means 50%.

2) Start date is the start date when a particular employee is tagged to any project.

3) End date is the date when the employee will be released from the tagged project.

Requirement : I want to find which resources are completely or partially available as per today. I want to get the details of employees whose project end date is greater than today's date and sum of FTE is less than 1.

In the above sample data, for empid 1: there are 2 rows whose date is more than today's date but the FTE summation comes to 1, that means he is allotted to projects and not available. Where for empid 2 and emp id 3, there are rows whose summation of FTE's whose date is  is more than today is less than 1. That means they are not completely allotted and somewhat free.

Employee may be tagged in any project/client that doesn't matter we have to check whether he is 100% allotted or any time free so can be allotted to other project/client.

I should get below output:

        

Sr_NoIDClientProjectStart DateEnd
Date
FTEName
2322Client 4Internal Operations2/1/20166/30/20190.1DEF
19592Client 6Phase 14/23/201812/30/20180.5DEF
13783Client 9Project 34/13/20154/26/20200.25XYZ
13863Client 10Project 48/29/20164/26/20200.25XYZ

Note: Date is in MM/DD/YYYY format.

Kindly help me to implement the requirement. Thanks in advance.

Regards,

Akshada

1 Solution

Accepted Solutions
sunny_talwar

Try one of these expressions

Sum({<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}, ID = {"=Sum({<[Start Date] = {""$(='<=' & Date(Today()))""}, [End Date] = {""$(='>=' & Date(Today()))""}>}FTE) <> 1"}>}FTE)

If(Sum(TOTAL <ID> {<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}>}FTE) <> 1, Sum({<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}>}FTE))


Capture.PNG

View solution in original post

5 Replies
sunny_talwar

Try one of these expressions

Sum({<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}, ID = {"=Sum({<[Start Date] = {""$(='<=' & Date(Today()))""}, [End Date] = {""$(='>=' & Date(Today()))""}>}FTE) <> 1"}>}FTE)

If(Sum(TOTAL <ID> {<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}>}FTE) <> 1, Sum({<[Start Date] = {"$(='<=' & Date(Today()))"}, [End Date] = {"$(='>=' & Date(Today()))"}>}FTE))


Capture.PNG

akshada_samant
Contributor II
Contributor II
Author

Thanks a lot sunny. Can you please help me with two more things.

1) When i am adding the said measure as a column i am getting null values also, how can i avoid the rows with null values.

2) I also want to show the total number of available resources:

Total resource count which will incorporate below conditions along with the above condition  :

Count( { $< [Termination_date] = {">=$(=Date(Today(), 'MM/DD/YYYY'))"},

[Roll_Off_Date] = {">=$(=Date(Today(), 'MM/DD/YYYY'))"}, [Status]={'ACTIVE'}

>} [Name]   )

Kindly help me to solve the above issues also.

Thanks in advance.

Regards,

Akshada

sunny_talwar

Would you be able to share a sample where you can show the above two issues? And for the 2nd issue, it will help to know what the expected output is based on the sample provided

akshada_samant
Contributor II
Contributor II
Author

Hi Sunny,

The solution given by you works great but only thing is i need 3 more conditions in it. Kindly find the updated sample data below.

Sr_NoIDClientProjectStart DateEnd DateFTE %NameTermination DateRoll off dateStatus
           
1722Jan-00Client 2ImplementationApr-18Jul-180.2ABC31/12/209931/12/2020Active
1723Jan-00Client 3ImplementationFeb-18Apr-181ABC31/12/209931/12/2020Active
1724Jan-00Client 4ImplementationJul-18Mar-190.2ABC31/12/209931/12/2020Active
2844Jan-00Client 3Phase2Apr-18Dec-180.8ABC31/12/209931/12/2020Active
232Jan-00Client 4Internal OperationsFeb-16Jun-190.1DEF31/12/209931/12/2020Active
1958Jan-00Client 5Phase 1Nov-17Apr-180.5DEF31/12/209931/12/2020Active
1959Jan-00Client 6Phase 1Apr-18Dec-180.5DEF31/12/209931/12/2020Active
737Jan-00Client 7Project 1Jan-18Feb-180.5XYZ31/12/209931/12/2020Active
944Jan-00Client 8Project 2Feb-18Oct-180.5XYZ31/12/209931/12/2020Active
1378Jan-00Client 9Project 3Apr-15Apr-200.25XYZ31/12/209931/12/2020Active
1386Jan-00Client 10Project 4Aug-16Apr-200.25XYZ31/12/209931/12/2020Active

 

I have added 3 more fields - Termination date, roll-off date and status.

We need to add 3 more conditions to our set of conditions as below:

Termination date and roll off-date should be greater than today's date and status should be 'Active'. 

I also need to show the total count of available resources with all the conditions. I need to show a table with columns - SAPID, Name, Total FTE%, Total available resources count,  last column will show if the resource is Partially available or fully available.

Thanks in advance. 

akshada_samant
Contributor II
Contributor II
Author

Hi,

Can anyone help me on this.

 

Regards,

Akshada