Skip to main content
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

=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