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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

if and expression

Hi ive tried to make an if and stement in qlikview and its resulting in what ever the second condition is only.

any help?

its suppposed to show all assignents that are on the STSS contract and are open

if(Contract = 'STSS', Status = 'Open', Assignment)

1 Solution

Accepted Solutions
iktrayanov
Creator III
Creator III

Try this

if(Contract = 'STSS' and Status = 'Open', Assignment)

View solution in original post

4 Replies
jerem1234
Specialist II
Specialist II

You need an and in between the two:

if(Contract = 'STSS' and Status = 'Open', Assignment)


Hope this helps!

iktrayanov
Creator III
Creator III

Try this

if(Contract = 'STSS' and Status = 'Open', Assignment)

alexandros17
Partner - Champion III
Partner - Champion III

The mistake is that you can't assign a value to a variable in that way:

if you need to seta a variable:

LET myVar = if(Contract = 'STSS', 'Open', 'Other')

hope it helps

samuel_brierley
Creator
Creator
Author

thanks, such a pain getting to know wlikview, doesnt seem to be consistent, eg the and isnt required in a sum expression.