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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Not Like" Equivalent or Workaround Within Set Analysis

Hello Qlikviewers

I have a report at the moment that I need to exclude values that have 'Serv', 'Service', 'Front' and 'Fronting' within the name from Set Analysis.

At the moment the expression I'm using is very basic

Sum(Value)

So I'm just wondering if there is a SQL NOT LIKE equivalent within set analysis that I can use to remove values that have the above within the name?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You can look at the minus operator - in combination with search expressions for your field values:

Sum({<NameField -= {"*Serv*","*Front*"}>} Value)

View solution in original post

7 Replies
swuehl
Champion III
Champion III

You can look at the minus operator - in combination with search expressions for your field values:

Sum({<NameField -= {"*Serv*","*Front*"}>} Value)

p_verkooijen
Partner - Specialist II
Partner - Specialist II

Or you can create flagfields in the script, this way you can select these values using SUM{<_ValidFlag={1}>}Value)

Also check out Set Analysis Wizard for QlikView | qlikblog.at

Anonymous
Not applicable
Author

Been using the Set analysis minus operator earlier today and it's saved my bacon.

p_verkooijen
Partner - Specialist II
Partner - Specialist II

HirisH_V7
Master
Master

Hi,

may be like this,

sum( {$<AreaField = E({1<NameField={Serv', 'Service', 'Front' , 'Fronting' }>})>} Value )

HTH,

Hirish

HirisH
Not applicable
Author

Thank you my expression now looks like this

Sum({<NameField -= {'*Serv*','*Front*','*Service*','*Fronting*'}>} Value)

Hopefully this works as its supposed to

swuehl
Champion III
Champion III

"*Serv*" should also find the same values like "*Service*", right (and similar for Front/ Fronting)?

That's why I only used the shorter searches with wildcards.