For more information, please refer to this announcement explaining best practices for getting answers to questions.
OTBI > Workforce Profiles – Person Profile Real Time > Cannot count the Persons in different years b
Content
Hello,
We have created the following analysis (PFA S1)
The field “Years of Experience Band” first computes the total years of experience by calculating the sum of the difference between the fields Start Date and End Date of each record in the Person Profile section “Previous Employment”. Then based on the result, it categorizes based on bands (e.g. between 1 and 5, between 5 and 10, etc)
CASE WHEN (sum((TIMESTAMPDIFF(SQL_TSI_MONTH, "Previous Employment"."Start Date", "Previous Employment"."End Date"))*1.00/12) >=1 AND sum((TIMESTAMPDIFF(SQL_TSI_MONTH, "Previous Employment"."Start Date", "Previous Employment"."End Date"))*1.00/12) < 5) THEN 'From 1 to 5'
WHEN (sum((TIMESTAMPDIFF(SQL_TSI_MONTH, "Previous Employment"."Start Date", "Previous Employment"."End Date"))*1.00/12) >=5 AND sum((TIMESTAMPDIFF(SQL_TSI_MONTH, "Previous Employment"."Start Date", "Previous Employment"."End Date"))*1.00/12) < 10) THEN 'From 5 to 10'