Skip to main content
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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
Partner - Specialist

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.

HirisH_V7
Master
Master

Hi,

may be like this,

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

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
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
MVP
MVP

"*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.