Transpose data adobe campaign classic

Avatar

Avatar

Chinni

Avatar

Chinni

Chinni

15-08-2020

Hi All,

Can you please help me in finding a way to transpose the data from different columns into a single for a customer. I am using adobe campaign V7 

 

PartyIdMonthMoney_arrears
123Jan20
123Feb27
123Mar45

 

I am looking for transposing the data into something like

 

PartyIdMonth_JanMonth_FebMonth_March
123202745

 

Many Thanks

Chinni

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

taplondon_josh

Avatar

taplondon_josh

taplondon_josh

18-08-2020

Hi @Chinni ,

 

Using a query activity in a workflow, leave the filtering conditions blank and configure the output columns to look something like this:

 

taplondon_josh_0-1597766092246.png

The records outputted will be grouped by partyId, and the newly month colums will sum the Money_arrears values for each partyId, but only if the month is equal to the one you specify. (Remember to disable automatic adding of primary key in the query's advanced parameters.)

 

taplondon_josh_1-1597766425419.png

 

Thanks,

 

Josh

Answers (1)

Answers (1)

Avatar

Avatar

Milan_Vucetic

MVP

Avatar

Milan_Vucetic

MVP

Milan_Vucetic
MVP

16-08-2020

Hi @Chinni

try to explore posibilities of Change dimension node in AC.

Check this similar example: Pivot and unpivot functions 

Regards,

Milan