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

To configure at least 2 purchases from the purchase history Table

Avatar

Level 4

Hi 

I could able to filter the purchase history with some period of time

But i want filter from this who have made purchase atlease 2 times in the time period

For Eg:

vani97_3-1712640683338.png

 

This is the time period i have given to get the purchase history 

vani97_2-1712640434544.png

 

Getting records in preview tab Like this and here cust id T110, T111 and T112 made purchase twice 

So in this case as a out pound transition i need to get only 3 records as T110, T111 and T112

Can anyone kindly guide me for this 

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @vani97 ,

In Query, use the same filtering condition, and navigate to Query > edit additional data > in output column, add the below 2 fields alone

  • @cust_id
  • Count(@cust_id)

Enable the 'Group' checkbox for @cust_id in output column.

ParthaSarathy_1-1712645735425.png

Then, Advanced Parameters > Enable 'disable automatic adding of primary keys of the targeting dimension' checkbox

ParthaSarathy_0-1712645633557.png

So, when you run the workflow, the output if the query will state how many counts a customer id had done a transaction.

ParthaSarathy_2-1712645928032.png

 

After query, use a split and configure filtering condition as count(@cust_ID) greater than or equal to 2

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @vani97 ,

In Query, use the same filtering condition, and navigate to Query > edit additional data > in output column, add the below 2 fields alone

  • @cust_id
  • Count(@cust_id)

Enable the 'Group' checkbox for @cust_id in output column.

ParthaSarathy_1-1712645735425.png

Then, Advanced Parameters > Enable 'disable automatic adding of primary keys of the targeting dimension' checkbox

ParthaSarathy_0-1712645633557.png

So, when you run the workflow, the output if the query will state how many counts a customer id had done a transaction.

ParthaSarathy_2-1712645928032.png

 

After query, use a split and configure filtering condition as count(@cust_ID) greater than or equal to 2