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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
aroyi
Contributor III
Contributor III

Qlik Sense-Set analysis-number range

Hi,

I need to create a measure to count customers who aged between 10 and 50 using set analysis, here's my script:

Count({$<Age={">10<50"}>}distinct(CustomerId))

The script looks ok, however the result I get is the total  number of customers, not those who aged 10-50.Can someone tell me what's wrong?Thanks a lot!

Labels (1)
1 Reply
petter
Partner - Champion III
Partner - Champion III

I agree that the expression looks OK. How about your data model? Is the CustomerId a key field?

If it is - doing a count on it will give you wrong results....