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: 
Not applicable

Set Analysis NOT LIKE

I'm trying to write a Set Analysis that ignores products that begin with "DO NOT USE".

This syntax works

=SUM({<ProductDesc = {'DO NOT USE*'}>} Sales)

but not this

=SUM({<ProductDesc != {'DO NOT USE*'}>} Sales)

and I can't find an equivalent syntax similar to SQL NOT LIKE

Labels (1)
1 Solution

Accepted Solutions
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

hi

this

=SUM({<ProductDesc -= {'DO NOT USE*'}>} Sales)


or


=SUM({<ProductDesc = {'*'} - {'DO NOT USE*'}>} Sales)


regards

View solution in original post

4 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

hi

this

=SUM({<ProductDesc -= {'DO NOT USE*'}>} Sales)


or


=SUM({<ProductDesc = {'*'} - {'DO NOT USE*'}>} Sales)


regards

Not applicable
Author

Thanks Jamie!

I tried -= but didn't apply to all expressions in the table so those "DO NOT USE" dimension items were still displayed due to the other expressions returning a value.

I tried both syntaxes you suggested and they both worked.

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

I prefer to use the second option, because syntax checker does not recognize this -> -= So everything you type after that will be underlined as if it was wrong, but it's not

Not applicable
Author

Agree. I implemented the second option.

The hyphen "-" throws off the syntax checker. This is an old known bug. I hope QV resolves that soon.