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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Tablename help?

Hi,

In script i have like this

in 1st Tab i have script like this

LET vTime=now(1);
LET vTableName = 'Employee';

[$(vTableName)]:
lOAD * from
table1;

in 2nd tab i have script like this

LET vTime=now(1);
LET vTableName = 'Sales';

[$(vTableName)]:
Load * from Table2;

Here in 2 tabs the (vTablename) variable name same.in the 1st tab this variable place the value 'Employee' and in 2nd tab with Sales.how it is possible.here we have 2 different values for 1 variable.

Please explain?

3 Replies
Not applicable
Author

it will take separately for each tab

danieloberbilli
Specialist II
Specialist II

the script runs consecutively - first the variable is filled with Employee and afterwards overwritten with Sales

alexandros17
Partner - Champion III
Partner - Champion III

your variable has 2 LET instructions, so in different moment it has 2 values assigned statically to tables (TAbles name are not linked to variable but only managed by it).

If you see the value of your variable it returns 'Sales' because it is the last value assigned