Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
New_Bee77
Contributor
Contributor

Merge two rows into one

I wanted to add two rows data into one row

row1          row2

hmc1       hmc4

hmc2      hmc5

hmc3     hmc6

---------------------------------------

merge_row

hmc1

hmc2

hmc3

hmc4

hmc5

hmc6

Labels (2)
1 Reply
vchuprina
Specialist
Specialist

Hi,

You can just concatenate rows. For this, you should load the original data, and load it again, but rename row1 as row2. See example below

Data:
LOAD * Inline[
row1, row2
hmc1, hmc4
hmc2, hmc5
hmc3, hmc6
];

Concatenate(Data)
LOAD
row2 as row1
Resident Data;

Result:

vchuprina_0-1650402940657.png

 

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").