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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Staff turnover with Set Analysis

Hi everybody,

I’m working on a datebase with a field called « Month » (format ‘MMM-YY’).

Each month, I add the company personnel list relative to said month.

What I’d like to do is, by selecting one month, display the staff “in” and the staff “out” compared to the previous month.
I’m wondering if I have to declare some variables in the script to use Set Analysis functions.

Thanks in advance for your help

1 Solution

Accepted Solutions
Not applicable
Author

Hi Flalanne,

i attach a file posted for an old similar question.

In this example the field "pres" is set to 1 if the relativ cust is present in that month/year, 0 if not.

For example if in march pres is 0 and in april 1, the relative custmer is entered.

I hope it's useful.

Stefano

View solution in original post

6 Replies
Not applicable
Author

Hi Flalanne,

i attach a file posted for an old similar question.

In this example the field "pres" is set to 1 if the relativ cust is present in that month/year, 0 if not.

For example if in march pres is 0 and in april 1, the relative custmer is entered.

I hope it's useful.

Stefano

Not applicable
Author

Hi Flalanne,

this file is better... I use P() and E() function in set analysis.

In this way it's not necessary to have all record in the originary table.

C u,

Stefano.

Not applicable
Author

Perfect ! Exactly what I need. Thanks

Not applicable
Author

Actually, it works perfectly for the staff entrances, but there is no result for the departures.

In your exemple, the value of pres2 field is 0 whereas the line is deleted in my application.

Any idea ?

Thanks.

Franck

Not applicable
Author

Hi Franck,

try if this is ok.

C u,

Stefano

Not applicable
Author

Thank you so much Stefano ! It works !