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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Problem

Hello,

I am using IF condition but not able to use 'DOES NOT CONTAIN' i.e '<>' sign in the set analysis.

IF CONDITION

==>> sum(if(@WS <>'R' and @WS<>'I' ,#QUANTITY/1000))

I need to implement above condition in the set analysis (FROM and TO)

===> IF(@WS<>'R' or @WS<>'I' ,SUM({<%DATE ={">=$(vFrom) <=$(vTo)"} >}#Quantity)/1000)

Need Help...!!!

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: SUM({<@WS-={'I','R'} %DATE ={">=$(vFrom) <=$(vTo)"} >}#Quantity)/1000)


talk is cheap, supply exceeds demand
sunny_talwar

Another option could be:


=Sum({<@WS = e({<@WS = {'I','R'}>}) %DATE = {">=$(vFrom) <=$(vTo)"} >} #Quantity) / 1000)

Best,

Sunny

Not applicable
Author

IT IS NOT WORKING.....!!!!

sunny_talwar

Does this work?

SUM({<@WS-={'I','R'}>}#Quantity)/1000)


If it does, then problem would be in this part -> %DATE ={">=$(vFrom) <=$(vTo)"}

Best,

Sunny