Transpose data adobe campaign classic

Avatar

Avatar
Level 1
Chinni
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
Chinni
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
Chinni
Level 1

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
Establish
Level 2
taplondon_josh
Level 2

Likes

7 likes

Total Posts

14 posts

Correct reply

6 solutions
Top badges earned
Establish
Affirm 5
Boost 5
Affirm 3
Boost 3
View profile

Avatar
Establish
Level 2
taplondon_josh
Level 2

Likes

7 likes

Total Posts

14 posts

Correct reply

6 solutions
Top badges earned
Establish
Affirm 5
Boost 5
Affirm 3
Boost 3
View profile
taplondon_josh
Level 2

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 (2)

Answers (2)

Avatar

Avatar
Shape 1
Level 1
Anilr1717
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Shape 1
View profile

Avatar
Shape 1
Level 1
Anilr1717
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Shape 1
View profile
Anilr1717
Level 1

16-07-2021

Hi,

You can use enrichment activity to do the transpose of data(rows to column). Please follow below steps.

Step1: Take the enrichment activity and make the self join with same table with the help of 1: N join while giving join condition.

Step2: While adding the data please make sure to add column(No. of records to retrieve as per your convenience (By default it will be max 3 rows) ). So it will create multiple enrichment table based on your records to retrieve. If you have chosen 3 then it will create 3 different temp enrichment table. 

Step3: Take final enrichment activity and then add your data from these different temp enrichment table.

 

Anilr1717_0-1626442516692.png

 

Thanks,

Anil

 

Avatar

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

384 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

384 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile
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