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: 
Not applicable

help needed to derive flag in script

Hi All,

I need to create flags for a column "Customer" in script.

Requirement is like if the "Customer" column is null in current year then the current year null flag =1 else 0

Similarly i need to look check for previous Year means if the "Customer" name is null in previous year then the previous year null flag will be 1 else 0.

I have to derive these flags to use in other field derivation in script.

Can somebody help me on this.

Thanks in advance

Regards,

Nani

1 Reply
vinieme12
Champion III
Champion III

if Customer and Year field both are in the same table then

if(len(trim(Customer))<1,1,0) as Flag

, else please post a sample

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