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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Add Flag

Hi,

I have a QVD file to which I need to add a FLAG (Yes/No).

The rule for the flag is if(Balance) >= 0 or Null  than Flag = No and if(Balance) <0 than Flag = Yes.

Thanks,

H

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Assuming that "Balance" is a fieldname in the QVD and "Flag" as the fieldname to be added, try the following code:

LOAD *, If(IsNull(Balance) or Balance >= 0,'No','Yes') as Flag;

LOAD * from Your.qvd (qvd);

View solution in original post

1 Reply
nagaiank
Specialist III
Specialist III

Assuming that "Balance" is a fieldname in the QVD and "Flag" as the fieldname to be added, try the following code:

LOAD *, If(IsNull(Balance) or Balance >= 0,'No','Yes') as Flag;

LOAD * from Your.qvd (qvd);