Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

loading a table based on a certain condition

Hi,

I'd like to load a table on the backfront on a certain condition.

I've got a variable vTableChoice which can have values 1 or 2.

So, I need to set the following condition in script:

If vTableChoice = 1 then:

table1:

load

...

else:

do not load table1 but load table2:

table2:

load

...

Is it possible to implement such logic?

Thank you in advance,

Larisa

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, almost exactly as you posted.

if $(vTableChoice) = 1 then

table1:

load

...

else

table2:

load

...

endif


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, almost exactly as you posted.

if $(vTableChoice) = 1 then

table1:

load

...

else

table2:

load

...

endif


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thank you!