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: 
Not applicable

Script function to get the name of the most recent table loaded?

Hi all,

Is there a function that will tell me the name of the most recent table in the load script?  For example:

Table1:

Load * from

SQL select * from orders;

Table2:

Load * from

SQL select * from customers;

let a = LastTableLoaded(); // would return "Table2"

Thanks!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Let vTableName = TableName( NoOfTables()-1 );

View solution in original post

2 Replies
swuehl
MVP
MVP

Let vTableName = TableName( NoOfTables()-1 );

Not applicable
Author

Exactly what I was looking for.  Thanks!