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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

help with if condition

Hi All,

I want to write a if condition in qlikview script as per the below requirement.

-when field1= 10 and field2<>10, then field3 should be 0, otherwise keep the value of field3 coming from source.

For more information, all the 3 fields are present in the same table.

please help!!

1 Solution

Accepted Solutions
Not applicable

so you have to write,

if(fiels1=10 and field2<>10,0,field3) as field3

hope this helps

regards,

MT

View solution in original post

4 Replies
Not applicable

so you have to write,

if(fiels1=10 and field2<>10,0,field3) as field3

hope this helps

regards,

MT

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this in script

LOAD

*,

If(field1= 10 AND field2<>10, 0, field3) AS field3

FROM DataSource;


Regards,

Jagan.

nizamsha
Specialist II
Specialist II

Load *

if(Field1=0 and field2 <>0,0,field3) as Field3

from ur table;

surajap123
Creator III
Creator III
Author

Thanks everyone for your time..