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: 
dhananjay_capge
Partner - Contributor III
Partner - Contributor III

If Condition in where clause


Hi There,

Can we use If condition in where clause?

If yes could plz share the example with syntax

Thanks,
DJ

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Not sure that I understand. A WHERE clause is already a type of if:

LOAD ....

FROM .....xlsx (ooxml, ...)

Where Len(Code) > 0;

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
mohamed_ahid
Partner - Specialist
Partner - Specialist

see the sample .

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Not sure that I understand. A WHERE clause is already a type of if:

LOAD ....

FROM .....xlsx (ooxml, ...)

Where Len(Code) > 0;

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
mohamed_ahid
Partner - Specialist
Partner - Specialist

may be he wants to select the condition of where depending on a if result . its useful if we use a parameter file (with variables)