Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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')