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

variable creation

H community i have tables,

Address:

LOAD AddressID,

     AddressLine1,

     AddressLine2,

     City,

     PostalCode,

FROM

E:\xyz\Task\Excel\Address.xlsx

(ooxml, embedded labels, table is Address);

Store:

LOAD StoreID,

     StoreName,

     SalesPersonID

FROM

E:\xyz\Task\Excel\Store.xlsx

(ooxml, embedded labels, table is Store); i have some more table

in this instead of using the  "E:\xyz\Task\Excel\" i need to us a variable

FROM

Variable name\filename.xlsx

How can i do this.

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Create a variable like below script and load your table according to variable use

Let vPath = 'E:\xyz\Task\Excel\';


Address:

LOAD AddressID,

     AddressLine1,

     AddressLine2,

     City,

     PostalCode,

FROM

$(vPath)Address.xlsx

(ooxml, embedded labels, table is Address);

Store:

LOAD StoreID,

     StoreName,

     SalesPersonID

FROM

$(vPath)Store.xlsx

(ooxml, embedded labels, table is Store);

View solution in original post

2 Replies
its_anandrjs
Champion III
Champion III

Create a variable like below script and load your table according to variable use

Let vPath = 'E:\xyz\Task\Excel\';


Address:

LOAD AddressID,

     AddressLine1,

     AddressLine2,

     City,

     PostalCode,

FROM

$(vPath)Address.xlsx

(ooxml, embedded labels, table is Address);

Store:

LOAD StoreID,

     StoreName,

     SalesPersonID

FROM

$(vPath)Store.xlsx

(ooxml, embedded labels, table is Store);

Not applicable
Author

I Got Result thank you for helping me.