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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple Count Functional


Hi QlikViewers

I want to perform a count funtion for multiple fields and only get the result in one field

e.g Reviewer1,   Reviewer2,      Reviewer3,         Reviewer4

     John Martin             -          Grace Willer         Spencer James

I want the Count result to be [All Reviewer]= 3

How can I do this?

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Did you add Set NullInterpret = ''; in your script?

Can you attach sample qvw

View solution in original post

7 Replies
anbu1984
Master III
Master III

Set NullInterpret = '';

Load *,RangeCount(Reviewer1,Reviewer2,Reviewer3,Reviewer4) Inline [

Reviewer1,Reviewer2,Reviewer3,Reviewer4

John Martin ,,Grace Willer,Spencer James ];

Not applicable
Author


Hi Anbu

Thanks for your answer. I have tried your solution but it doesn't return the correct answer though. It returns the value of "4" instead of "3"

preminqlik
Specialist II
Specialist II

in front end you can do like this

rangesum(count(reviewer1),0)+rangesum(count(reviewer2),0)+rangesum(count(reviewer3),0)+rangesum(count(reviewer4),0)

or in backend

you need to do cross table and then you need to count i think.

anbu1984
Master III
Master III

Did you add Set NullInterpret = ''; in your script?

Can you attach sample qvw

Not applicable
Author

Hi Anbu

Thanks! I didn't add the Set NullInterpret = ''; in the script. It works now.

If you don't mind can you please explain to me how this logic works? It's the first time I'm seeing this awesome fuction.

anbu1984
Master III
Master III

From QV Help

rangecount(expr1 [ , expr2, ... exprN ])

Returns the number of values found within a range of 1 to N arguments. NULL values are not counted.

Set NullInterpret = ''; -- This will convert all blank fields to NULLs

Not applicable
Author

Thanks a lot!