Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Grouping Based on Total Purchases Under a Certain Amount

kcfuiks
8 - Asteroid
Customer Purchase OrderAmountShippingTaxTotal
C001P1235.004.001.0010.00
C001P1265.004.001.0010.00
C001P1295.004.001.0010.00
C002P1245.004.001.0010.00
C002P1274.003.001.008.00
C002P1306.005.001.0012.00
C003P1255.004.001.0010.00
C003P1287.006.001.0014.00

 

I’m stuck on this issue and could use some assistance.

 

I have a list of customers, orders they have placed, and the amount of each order. I need to flag customers that have spent a total of 10 dollars or less on an order *only* if all the orders that customer has placed are 10 dollars or less. So in this case, customer C001 should be the only customer flagged.

4 REPLIES 4
gabrielvilella
14 - Magnetar

Hey @kcfuiks, you can do this by looking at the average and max value for the Total. If, for each customer, the average total and the max total are less or equals to 10, then flag.

gabrielvilella_0-1642558148387.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @kcfuiks 

 

Here is my take.

 

Workflow:

atcodedog05_0-1642572875092.png

 

Hope this helps : )

 

kcfuiks
8 - Asteroid

@atcodedog05 Thank you!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @kcfuiks 

Cheers and have a nice day!

Labels