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

Blank values causing set analysis issue

I have the following expression

=COUNT(DISTINCT {$<Firm-={"ICAP","*TEST*"}>}SessionId)

Unfortuantely records where the Firm field is blank are not being counted. How can i get them counted, whilst simutaneously ignoring the two values stated above?

11 Replies
Not applicable
Author

Maybe try....
=COUNT(DISTINCT {$<Firm-={"ICAP","*TEST*"}, Firm={*}>}SessionId)

Not applicable
Author

no luck

Not applicable
Author

Are you able to post a sample of the data or QVW? 

Nicole-Smith

You should have single quotes around the values instead of double quotes:

=COUNT({$<Firm-={'ICAP','*TEST*'}>}DISTINCT SessionId)

Not applicable
Author

=COUNT(DISTINCT {$<Firm-={"ICAP","*TEST*"}> + <Firm=p(1-$<Firm={"*"}>Firm)> }SessionId)

Not applicable
Author

I just created a sample file and it works. I did get the blank value count included. May be you want to post a sample showing data? I have attached my sample file for your ref.

eduardo_sommer
Partner - Specialist
Partner - Specialist

Hi Alex,

Is your value really blank? Make sure it is not null.

Eduardo

Not applicable
Author

Thanks Nicole. I tried this but it still didn’t work.

Out of interest, what’s the difference between apostrophies and speech marks?

Not applicable
Author

That's a great point Eduardo. The values are showing as -

Does that mean null or blank? What difference would this make to my expression?