Combination of Products and summation of the counts of respective products as shown in description. | Community
Skip to main content
Level 2
January 17, 2024
Solved

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

  • January 17, 2024
  • 1 reply
  • 579 views

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AnanthanJa

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.

 

Image of the workflow

 

 

 

 

 

1 reply

AnanthanJaAdobe EmployeeAccepted solution
Adobe Employee
January 20, 2024

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.

 

Image of the workflow

 

 

 

 

 

saurabh99Author
Level 2
February 28, 2024

Thank you for sharing this logic.