Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sona_sa
Creator II
Creator II

Employees getting appraisal for true in continous 3 years.

Hi,

I have 4 Years of data for Employees with the field of Apraisal = 'True' and 'False'.

Now I want to check out who are the employees getting appraisal  for 'TRUE' in cotinuous 3 Years.

How we can do it ?

For example : I am sending some data in xls and QVW, So please find the attached file.

Regards,

A Kumar

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Then load your data as it is like

Appraisal:

LOAD Year,

     Employee,

     Grade,

     Apprasial

FROM

[Apraisail1.xls]

(biff, embedded labels, table is Sheet1$);

Create a chart with employee as dimension and below as expression

=If(Count({<Year={">=$(=Max(Year)-2)<=$(=Max(Year)))"},Apprasial={'TRUE'}>} DISTINCT Year)=3,1)

Is this your need?

Celambarasan

View solution in original post

5 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Try with this,

Appraisal:

LOAD Year,

     Employee,

     Grade,

     Apprasial,

     If(Apprasial='TRUE',1,0) as AppraisalStatus

FROM

[Apraisail1.xls]

(biff, embedded labels, table is Sheet1$);

Create a chart with employee as dimension and below as expression

=If(Sum({<Year={">=$(=Max(Year)-2)<=$(=Max(Year))"}>} AppraisalStatus)>3,1)

Hope it helps

Celambarasan

sona_sa
Creator II
Creator II
Author

Hi Celambarasan,

Thanks for reply,

As per provided expression, It is giving continuous of same year of the employee is getting appraisal. Like that for employee code = 18 is getting appraisal in 2008 and 2011 three times.

But I want employee who is getting the appraisal continuously yearwise, like - 2008 ->2009->2010 or 2009->2010->2011.

Again thanks for reply.

Regards,

A Kumar

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Then load your data as it is like

Appraisal:

LOAD Year,

     Employee,

     Grade,

     Apprasial

FROM

[Apraisail1.xls]

(biff, embedded labels, table is Sheet1$);

Create a chart with employee as dimension and below as expression

=If(Count({<Year={">=$(=Max(Year)-2)<=$(=Max(Year)))"},Apprasial={'TRUE'}>} DISTINCT Year)=3,1)

Is this your need?

Celambarasan

sona_sa
Creator II
Creator II
Author

Thanks This one is correct.

Thanks a lot.

Not applicable

I'm trying to do exactly the same, but within the script to finally

have a list box to decide selction "continues 3 years" and "not".

Can anybody help me with this?