Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Combine multiple rows into one row

$
0
0

Hi,

 

I would like to combine records that I receive in multiple rows into one row.

 

In short, this is my input:

UserNameMichael
StatusActive
TeamSales
LocationFrance
UserNameThomas
StatusNot Active
TeamHR
LocationBelgium
UserNameBob
StatusActive
TeamHR
LocationSpain

 

And this is the what I would like as output:

UserNameStatusTeamLocation
MichaelActiveSalesFrance
ThomasNot ActiveHRBelgium
BobActiveHRSpain

 

It's a kind of transpose on the 4 first rows to be repeated. If it were only 2 'columns' per record, I could do that with the multi-row formula, taking the [row-1], but the more columns I add per record, the more complex it becomes.

 

Many thanks


Viewing all articles
Browse latest Browse all 4999

Trending Articles