Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

number of employee who's experience is 2 year or less !

Hello everyone ,

how can I calculate the number of employee who's experience is 2 year or less ??

I should subtract 2 year from today ..

I tried to write many expression but I don't find the correct result !!

------------------------------------------------------------------------

count(

      ${

        <

        //addmonths(date(original_date_of_hire),-24)

        //original_date_of_hire = (max(Year-2))

        //= Month(AddMonths(original_date_of_hire,-24))

        //Date = P({<Year={$(=max(Year)-2)}>}original_date_of_hire)

        //Year= {$(=original_date_of_hire(Year-2))}

        //Year = {$(=max(original_date_of_hire)-2)}

        //if (original_date_of_hire - today()>=2 ,1,0)

        //=original_date_of_hire(makedate(today())-720)

        //original_date_of_hire = date(AddMonths(today(),-24))

        //date={"$(=date(max(date)-100))"}

        //original_date_of_hire = AddMonths( Today(), -24 )

        >

      }

distinct Employee_Assignments.person_id)

------------------------------------------------------------------------------

*((( original_date_of_hire  ))) this is start date of employee

please help me, How can I solve it ?

1 Reply
Lisa_P
Employee
Employee

Hi Bayan,

Try this ....

count(

      {$

        <

        original_date_of_hire =   // Start date

          { ">                              // >  greater than, " " search

               $(=                         // $(=     )  Dollar sign expansion to evaluate an expression within set analysis

               Date(AddMonths( Max(Today()), -24))     //  Date format,  Add -24 months to Today

               )

               "}

        >

      }

distinct Employee_Assignments.person_id)