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: 
MalcolmCICWF
Creator III
Creator III

Range Expression 2

I want to do a range expression where any of my codes that are 2000's are counted and if they are 2000's-3000's they are counted.The codes range from 1000-5000, but what I am using seems to be counting all the codes no matter what I change the range to. Can anyone help me figure out how to count just specific codes for these in report expressions?

Here is what I have that isnt working.

COUNT(IF(DISPO>=2000,1

and DISPO<=3801,1))

Labels (1)
1 Solution

Accepted Solutions
Not applicable

To count only the codes in the 2000's:

=Count({<DISPO={">=$(=2000) <=$(=3000)"}>} DISPO)

To count only the codes in the 2000's and 3000's:

=Count({<DISPO={">=$(=2000) <=$(=4000)"}>} DISPO)

View solution in original post

5 Replies
Not applicable

I can't see the image you posted, but have you tried using a mapping load in the script? That should do the trick.

MalcolmCICWF
Creator III
Creator III
Author

Sorry, I have updated the picture in my original post.

Not applicable

Hmm. I still can't see it. 😕

MalcolmCICWF
Creator III
Creator III
Author

I just pasted the damn code this time lol. I also changed up the wording a bit to explain where I am using it. This is on the front end of my report where I am trying to create expressions for a char tin my report.

Not applicable

To count only the codes in the 2000's:

=Count({<DISPO={">=$(=2000) <=$(=3000)"}>} DISPO)

To count only the codes in the 2000's and 3000's:

=Count({<DISPO={">=$(=2000) <=$(=4000)"}>} DISPO)