Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write "not equals to" condition in set analysis?

Hi,

I am trying to write a set analysis expression for not equal to condition.

Requirement:

List products where Brand is not equals to 'B'

Please advise.

Thanks,

Chethan.V

5 Replies
krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi,

Try below expression.

Only({<Brand-={"B"}>}products)

vamsee
Specialist
Specialist

For versions of Qlikview earlier than 12.0 {<Brand={'*'}-{'B'}>}

When " " -- are used, the value inside it is calculated. For text use ' ' (single quotes)

psankepalli
Partner - Creator III
Partner - Creator III

sum({$< Brand={'*'} - {'B'}>} Products)

 

psankepalli
Partner - Creator III
Partner - Creator III

Sorry there was typo,


Only({$< ={'*'} - {'B'}>} APPTime)

 

jonathandienst
Partner - Champion III
Partner - Champion III

>>For versions of Qlikview earlier than 12.0 {<Brand={'*'}-{'B'}>}

The -= syntax has worked since V10 (or perhaps even V9. The syntax checker incorrectly showed this as an error (red squiggly underline), but it worked correctly. The syntax checker was fixed in 11.20 SR 12 (or thereabout).

For list box or calculated dimension:

=Aggr(Only({<Brand -= {B}>} product), product)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein