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

Does not =

hi, sorry if this is a very simplistic question but i've wasted all afternoon trying to figure it out.,..

i have a table in which i have the following expression:

IF (DocumentType = 'C', NetSalesValue) 

...this seems to work ok, but i also want an expression that shows everything but 'C'...

i presumed something like:

IF (DocumentType <> 'C', NetSalesValue)

...  would work but it doesnt??  what am i doing wrong? 

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi James

you can use set analysis

sum({<DocumentType =-{'C'}>} NetSalesValue)   gives everything but C

or

sum({<DocumentType =E{'C'}>} NetSalesValue)   excludes C

best regards

Chris

View solution in original post

5 Replies
Clever_Anjos
Support
Support

it should work...

try IF (not DocumentType = 'C', NetSalesValue)

Anonymous
Not applicable
Author

no that didnt work either, kind of worked for 1 or 2 lines but not all of them??

Not applicable
Author

Hi James

you can use set analysis

sum({<DocumentType =-{'C'}>} NetSalesValue)   gives everything but C

or

sum({<DocumentType =E{'C'}>} NetSalesValue)   excludes C

best regards

Chris

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It should work. Can you post the offending document that demonstrates the problem?


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Yep, bang on - thanks