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: 
techvarun
Specialist II
Specialist II

Dynamic Data Source

Hello Experts

   I ahave a table with two coloumns

Val and Pub

if my values are

Val            pub

1212121    1212121

I need to load the data from Data_7.txt

if in case my values

Val            pub

1212121   

I need to load the data from Data_0.txt

Usulally the Data_$(len).txt have to cotain the lenghth of the field PUB

My table will have always only one entry

Please suggest a way to achieve this

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this:

LOAD pub FROM ValPubSourceTable;

LET vLen = len(trim(peek('pub')));

LOAD * FROM Data_$(vLen).txt (txt, ....);


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this:

LOAD pub FROM ValPubSourceTable;

LET vLen = len(trim(peek('pub')));

LOAD * FROM Data_$(vLen).txt (txt, ....);


talk is cheap, supply exceeds demand