Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
hathwarjaya
Contributor
Contributor

counting Inactive users for last 90 days

Hello All,

I need your help in one set analysis expression.

I need to calculate the number of  users with no activity in the last 90 days.

and plot a line chart with week and month as x axis.

This is how the data looks like.

Useractivityactivity date
A11.12.2019
B22.1.2020
C226.1.2020
D15.2.2020
E320.2.2020
F326.3.2020

 

Please help me with this.

Labels (3)
12 Replies
hathwarjaya
Contributor
Contributor
Author

Hello Sunny,

the set analysis expression you gave is also including the data from long back also 

not only just from 90 days back

could you please help me with this?

Regards,

Jaya

sunny_talwar

I am not sure I follow, can you show this with an example?

Brett_Bleess
Former Employee
Former Employee

What about using a 'flag' field to do the count, so as you load the records, you are checking if the date last entered is within 90 day window or not, and if not, you set the flag field to a 1 else 0, so you can simply sum the flag field as the expression in the line chart at that point I believe.  This will not require set analysis in this case, you do the flag set in the script using an 'if' statement there to do the check and you could set the date check as Today()-90 I believe.  Hopefully that gives you another avenue to pursue on this one.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.