Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis

Hi Everyone,

I have EmployeeCode,GradeCode and Cal_Date fields,I want to find out employees Count who has same grade from last 3 years


Any suggestions would be greatly appreciated.


Regards,
P.Divya

Labels (1)
1 Reply
tresB
Champion III
Champion III

Something like:

Count({<EmployeeCode ={"=Count({<Cal_Date ={'>=$(=Date(AddYears(Max(Cal_Date ), -3))) <=$(=date(Max(Date)))'}>}Distinct GradeCode)=1 "}, Cal_Date ={'>=$(=Date(AddYears(Max(Cal_Date ), -3))) <=$(=date(Max(Date)))'}>}Distinct EmployeeCode)




Update: Include the same time set restriction in the inner count as well. Corrected few glitches as well.