Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Creating flags

Hi ,

The field consists both values and nulls.I need to create flags if values were there as flag1 and for nulls flag2.

Thanks..

3 Replies
arulsettu
Master III
Master III

maybe like this

if(field>0,'flag1','flag2')

vinieme12
Champion III
Champion III

to take care of enter characters or spaces that are not really null use trim()

if(len(Trim(Field))<1,'Flag2','Flag1') as FLAGfield

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable

I have 2 suggestion:

=if(IsNull(Amount)=-1,'Flag2','Flag1')

or

=if(IsNull(Amount)>=0,'Flag1','Flag2')