Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Append All column in one Column

Hi,

I have a one table which is containing 3 fields.I want a column which is containing all records from all Column.

For Example:-

Table1:

Column1 Column2 Column3

1              2           3

3              1           5

6               5          2

result which i want is:

Column

1

3

6

2

1

5

3

5

2

Thanks in advance,Please help me to resolve that issue.

Regards,

Nisha

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi

Below is the Expression

=ValueList($(=concat({1} distinct chr(39) & Col1 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col2 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col3 & Chr(39),',')))

Regards

Harsha

View solution in original post

4 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Table2:

LOAD Column1 as Column

RESIDENT Table1;

CONCATENATE (Table2)

LOAD Column2 as Column

RESIDENT Table1;

CONCATENATE (Table2)

LOAD Column3 as Column

RESIDENT Table1;

Not applicable
Author

I want logic in sheet not in Script level

ashfaq_haseeb
Champion III
Champion III

Try like this

Temp:

load * Inline

[

Column1,Column2,Column3

1,2,3

3,1,5

6,5,2

];

NoConcatenate

Main:

load Column1 as Column Resident Temp;

Concatenate(Main)

load Column2 as Column Resident Temp;

Concatenate(Main)

load Column3 as Column Resident Temp;

DROP Table Temp;

Regards

ASHFAQ

Anonymous
Not applicable
Author

Hi

Below is the Expression

=ValueList($(=concat({1} distinct chr(39) & Col1 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col2 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col3 & Chr(39),',')))

Regards

Harsha