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

Set Analysis - And statement for same field

I am trying to write a set analysis for our consumers who are on 6 or more medications and 10 or less medications (i.e. taking anywhere from 6 - 10).

This is my expression so far:

Count( {<Year=,Month=,[Medications Total]={'>=6'},[Medications Total]={'<=10'}>} _ConsumerProfileKey)

I want year and month to be null so that's taken care off.

This expression is only giving me consumers who are taking 10 or less medications and is disregarding the 6 or more condition. Is there another way of writing this a different way?

I've spent the last hour with no success

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Have you tried this:

Count( {<Year=,Month=,[Medications Total]={">=6<=10"}>} _ConsumerProfileKey)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Have you tried this:

Count( {<Year=,Month=,[Medications Total]={">=6<=10"}>} _ConsumerProfileKey)


talk is cheap, supply exceeds demand
Not applicable
Author

Worked perfectly. Thank you so much!