Expand my Community achievements bar.

SOLVED

Combination of Products and summation of the counts of respective products as shown in description.

Avatar

Level 2

We have the data in the below-shown format:

Product 1Count 1Product 2Count 2
A2D1
B3E2
C1F1

like we have headers for Product 1 and Count 1 in a transition and Product 2 and Count 2 in another transition and we need results in the below shown format.

Product ComboCount
ADSum of Count A and Count D
AESum of Count A and Count E
AFSum of Count A and Count F
BDSum of Count B and Count D
BESum of Count B and Count E
BFSum of Count B and Count F
CDSum of Count C and Count D
CESum of Count C and Count E
CF

Sum of Count C and Count F

Is there any way to do this in Adobe Campaign Classic without using js activity.

 

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @saurabh99,

 

You can perform a Cartesian join using an enrichment activity.

 

In this case, you can join the product schema with itself using the condition as 1=1 i.e., both the source and target values are hard coded as 1.

 

This will yield additional records where the linked data is all blank. You can filter the same using split activity. Then you can use enrichment to add the sum.

 

AnanthanJa_0-1705733151103.png

Image of the workflow

 

AnanthanJa_1-1705733171420.png

 

 

 

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hi @saurabh99,

 

You can perform a Cartesian join using an enrichment activity.

 

In this case, you can join the product schema with itself using the condition as 1=1 i.e., both the source and target values are hard coded as 1.

 

This will yield additional records where the linked data is all blank. You can filter the same using split activity. Then you can use enrichment to add the sum.

 

AnanthanJa_0-1705733151103.png

Image of the workflow

 

AnanthanJa_1-1705733171420.png