Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Merge two field into one in a table

Hello All,

I have the table below:

ABCDEF
AP1AP6
AP2AP5
AP3AP7

I need a create a table with a single field:

ABCDEF
AP1
AP2
AP3
AP5
AP6
AP7

Any idea on how I can do that?

KR,

Hasvine

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Table:

LOAD ABC as ABCDEF

FROM Source;

Concatenate(Table)

LOAD DEF as ABCDEF

FROM Source;

View solution in original post

8 Replies
sunny_talwar

May be this:

Table:

LOAD ABC as ABCDEF

FROM Source;

Concatenate(Table)

LOAD DEF as ABCDEF

FROM Source;

Not applicable
Author

Does it work if both are from the same source?

Table:A

LOAD ABC,

          DEF;

FROM Source;

sunny_talwar

I am sure it will.

puttemans
Specialist
Specialist

Hello Hasvine,

Beware, you cannot take a schortcut a script

LOAD ABC as ABCDEF,

          DEF AS ABCDEF

FROM Source;


You need to follow the example from Sunny.

MarcoWedel

Hi,

one solution could be also:

QlikCommunity_Thread_205586_Pic1.JPG

table1:

CrossTable(temp,ABCDEF)

LOAD 1,* FROM [https://community.qlik.com/thread/205586] (html, codepage is 1252, embedded labels, table is @1);

DROP Fields [1], temp;

hope this helps

regards

Marco

Not applicable
Author

Thanks everyone.

The answer of Sunny is working.

KR,

Hasvine

Anonymous
Not applicable
Author

Rangesum also useful to merge to columns by using rangesum to merge the columns

Anonymous
Not applicable
Author

example is RangeSum(Above(Sum(sale),-1,RowNo()))