Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
reivax31
Partner - Creator III
Partner - Creator III

If , Then, Else ... In LOAD

Hi Qlikers,

I'm wondering if it il possible to use IF, THEN, ELSE in LOAD.

This is what I’m trying to do:

LOAD

if "Test" = 'empty' then

  if "Test2" = 'empty' then

  'Empty'

  Else

  'New'

  End if

Else

'OLD'

End if AS "Test3"

FROM ...

Is there something wrong with my syntax, or the only possible way iln LOAD  is to do

LOAD

If("Test"= 'empty', if (“Test2”=’empty’, ’empty’,’New’),’OLD’) as "Test3"

FROM ...

Thanks for your help

11 Replies
sunny_talwar

Make sense

petter
Partner - Champion III
Partner - Champion III

Happy to help