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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with set analysis

I need help with the following expression -

Count({$<field={'NULL'}>}field)

However, I want it to do the opposite of this.  I want it to ignore the 'NULL'.  I tried replacing the '=' with '<>' but that didn't work.

Any suggestions?

Thanks

Greg

12 Replies
sasiparupudi1
Master III
Master III

or may be this

Count({$<field ={'*'}-{'NULL'}>}field)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I just reread your initial post. You know why = works in a set modifier, but <> doesn't? That's because the equal sign means 'temporarily assign the set of values on the right to the field on the left'. It's not a comparison operator, it's a (temporary) assignment that lasts for the duration of the expression calculation.

Just like the following is a valid script assignment

LET vField = 'ABC' & chr(10) & 'DEF';

but this one is not:

LET vField <> 'GHI';

beck_bakytbek
Master
Master

Hi Greg,

look at this: Flags in script

i hope that helps