내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How to pivot up the data?

Avatar

Level 2

I have below scenario:-

 

CUST_ID  JOB_CD

123            ABC

123            XYX

 

OUTPUT:-

123       ABC, XYZ

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 8

Hi,

 

You can use Query activity and Enrichment in a workflow to change your data set and get result in above format. Try below steps

 

A) As an example I have created a schema name as cus:pivot

kapilKochar_0-1652796515828.png

 

B) Create a workflow like below 

i) Query activity

kapilKochar_1-1652796588624.png

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

kapilKochar_2-1652796639611.png

 

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. In below example since I have two values so I have selected two

kapilKochar_3-1652796708206.png

 

Add your data from these different temp enrichment table and result will be like below

kapilKochar_4-1652796793609.png

 

Hope this helps. 

 

 

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Level 8

Hi,

 

You can use Query activity and Enrichment in a workflow to change your data set and get result in above format. Try below steps

 

A) As an example I have created a schema name as cus:pivot

kapilKochar_0-1652796515828.png

 

B) Create a workflow like below 

i) Query activity

kapilKochar_1-1652796588624.png

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

kapilKochar_2-1652796639611.png

 

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. In below example since I have two values so I have selected two

kapilKochar_3-1652796708206.png

 

Add your data from these different temp enrichment table and result will be like below

kapilKochar_4-1652796793609.png

 

Hope this helps. 

 

 

Avatar

Level 2

Thanks Kapil.

 

I am not able to find "Select additional columns" from your snippet. Where to set these columns to create field?

 

Data_guy_0-1652875156038.png

 

Avatar

Level 8

kapilKochar_1-1652928580058.png

Here you go 

 

kapilKochar_0-1652928559820.png