Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

How to get the most ordered product via adobe campaign ?

Avatar

Level 1

Hi Adobe Community!

 

I'm trying to get the product most ordered by a customer based on the below table:

oliviergroux_0-1601655881737.png

 

What I'm trying to achieve is to get a final table with Cus_ID | Most ordered 

Ex with the above:

Cus_ID             |  Most ordered 

677210000124 |  1,421

 

The main table is the Recipient table and the other table is linked via a "one to many" link.

What should I do to get to this outcome?

 

Thanks in advance,

Olivier

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @oliviergroux ,

 

You can query all your data from this orders schema and then add an enrichment after this.

 

In the enrichment add these two columns product id and the customer Id. Check the checkbox which says groupBy for product id column and then in the recipient column 

Something like this

_Manoj_Kumar_0-1601718966731.png

 

Then after running the query you will get the output where you will have the total number of orders against a product like this:

_Manoj_Kumar_1-1601719856745.png

 

 

Then you can again enrich this data on the basis of product id with the original table to get the desired output. I have added an additional column of no orders.

 

_Manoj_Kumar_2-1601719917883.png

 

Let me know if that helps.

 

Thanks

 

 

 


     Manoj
     Find me on LinkedIn

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello @oliviergroux ,

 

You can query all your data from this orders schema and then add an enrichment after this.

 

In the enrichment add these two columns product id and the customer Id. Check the checkbox which says groupBy for product id column and then in the recipient column 

Something like this

_Manoj_Kumar_0-1601718966731.png

 

Then after running the query you will get the output where you will have the total number of orders against a product like this:

_Manoj_Kumar_1-1601719856745.png

 

 

Then you can again enrich this data on the basis of product id with the original table to get the desired output. I have added an additional column of no orders.

 

_Manoj_Kumar_2-1601719917883.png

 

Let me know if that helps.

 

Thanks

 

 

 


     Manoj
     Find me on LinkedIn

Avatar

Administrator

Hi @oliviergroux,

Were you able to resolve this query with the given solution? Do let us know.

Thanks!



Sukrity Wadhwa