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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
iamthefixer
Contributor II
Contributor II

How to load from variable/dynamic datasources

Hello guys,

I would like to use variable datasources in a text object to switch from live to stage when reloading data.

The application uses relative paths to load data from two folders:

[...]\live\

[...]\stage\

The subfolders and files are the same in each of the above folders.

Could you please advice on how to do this? Many thanks for your support

Regards, Andrea

1 Solution

Accepted Solutions
senpradip007
Specialist III
Specialist III

Create a variable vDataSourc = 'live' and then use like [....]\$(vDataSourc)\

View solution in original post

5 Replies
senpradip007
Specialist III
Specialist III

Create a variable vDataSourc = 'live' and then use like [....]\$(vDataSourc)\

its_anandrjs
Champion III
Champion III

You can use TableName() or FileBaseName() function for identify the file name from folders.

iamthefixer
Contributor II
Contributor II
Author

Pradip, thank you. It worked like a charm.

Andrea

iamthefixer
Contributor II
Contributor II
Author

Anand, thank you. I am not familiar with TableName() or FileBaseName() but I will explore the option as I see value in your solution.

Thank you

Andrea

senpradip007
Specialist III
Specialist III

I think you've marked correct yourself, which I suppose to get it.