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: 
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...!!!

Labels (1)
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
MVP
MVP

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

Does this work?

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


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

Best,

Sunny