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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Write Table names into one variable

Hi,

I have the fields One, Two and Three in one Table and now I want to get this fieldnames into one variable in the qlikview script. How to do this? Is there a function like concatenate?

Thanks...

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

=concat({<$Table={'MyTableNameHere'}>}distinct $Field, ', ')


talk is cheap, supply exceeds demand
sunny_talwar

May be this:

Table:

CrossTable (FieldNames, Data)

LOAD 1 as Temp,

  *;

LOAD * Inline [

One, Two, Three

1, 2, 3

];

FinalTable:

LOAD Concat(FieldNames, ',') as ConcatFieldName

Resident Table;

LET vVar = Peek('ConcatFieldName');

TRACE $(vVar);

Capture.PNG