Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
drohm002
Creator
Creator

set analysis variable construction

Please see my data table below.  I want to create a variable that counts the number of 'ID's with days less than 90.  When I create the variable on my own, it gives me 6 as the answer, but really the answer should be 2 ID's.  I know I need to use the distinct function, but I just cant get the formula to work.  How can I accomplish this?  Thank you!

   

IDdays
15
15
15
220
220
220
3100
3100
3100
21 Replies
eru-alelo
Contributor
Contributor

HI.

I've created a new discussion in the following group and with this title

Create Customer Billing Scenarios

All Locations> QlikView Forums & Resources> New to QlikView> Discussions.

manoj217
Creator III
Creator III

this is correct count function will count all the values <90 and with distinct used so it will count only unique values in a set analysis

= Count(DISTINCT {<days = {"<90"} >}ID)