Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor II
Contributor II

If condition based on another column

Hi, I have two columns named Object and Address, and I want to edit the script editor to give me results, If Object has an address show me 1, and if the Object doesn't have an address(if its null) show me 0,
How can I do that?
 Thanks in advance!

Labels (2)
2 Replies
Highlighted
Specialist II
Specialist II

Re: If condition based on another column

Ideally something like below must help ,if not please share the data

if(len(trim(address))>0 and isnull(address)<>0,1,0) as Flag

Highlighted
Creator III
Creator III

Re: If condition based on another column

hi Samri,

try to use below expression this could be help you

If(GetFieldSelections(object)>1 and Len(Trim(address))<>0,1,0)

 

Regards,

Nitin