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

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

Set Analysis greater than and less than

Hi There,
I am having a problem on Qlikview 8.5 and I wondering if someone can assist.
See my screen shot below which displays a group name, month and member count for each month displayed.
The value 78 is the member count for the 1st month but it displays this value down through the rest of the list.

error loading image

You can see in the second screen shot for example I've selected a singluar month and it displays 79 which is correct for that month however it displays as 78 in the full list.

error loading image

To get the member count for a month we use an effective date and term date for each member. So if the effective date and term date are between the month this is what the member count is.
This is the set analysis expression I'm using

count

({<EFFECTIVE_DATE = {'<=$(=date(min(REPORT_DATE)))'} ,TERM_DATE = {'>=$(=date(min(REPORT_DATE)))'} >}
distinct MEMNO)



Thanks,
Kevin.

2 Replies
Not applicable
Author

Kevin,

I did come across few such scenarios wherein the field is not exactly relative. So aggregated at the time of load itself. So can't you use count(..) as <No Members> in the SQL SELECT/ LOAD itself instead of the run time?

-Arun

Not applicable
Author

Hi Sunil,

How do you mean not relative? Surely if there is an association then you can apply this logic through set analysis?

Can set analysis not handle such a criteria?

I dont think its possible for me to do this through the LOAD code.

Thanks,
Kevin.