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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count with set analisys

Hi, I have a fact table which contains the motion of the Payroll, this table I have the month and year of the sheet and the date of termination of service, the problem is that when I have the terminations additional employees who were already turned off appears again indeed, what I want is that this functionary not tell when the withdrawal date is <than the month and year of the sheet.

Exemple:

Mat Month Year   Off

1      1       2013   01/05/213

1      2       2013   01/05/213

1      3       2013   01/05/213

1      4       2013   01/05/213

1      5       2013   01/05/213

1      6       2013   01/05/213 1 6 2013 <== from here should not be counted in the expression

1      7       2013   01/05/213

1      8       2013   01/05/213

1 Reply
Not applicable
Author

Try this

=Count({<Month={"<=$(=Date((Date#(Off,'DD/MM/YYYY')),'M'))"}>}Month)

See attached