The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Application of pro rata discount

healsio2025
7 - Meteor

(1) tab 1 situation

What Alteryx tool could I use to apply pro rata discount to supermarket's sales receipts?

The promotion was $30 any sales receipts for the 30th anniversary day.

 

(2) tab 2 situation

I only want to keep the highlighted area for my permanent sales records since several items were typically sold under one receipt number 111, 112, 113, etc. what tools should I apply in my workflow? So a sample of the out put would be like this without itemization:

Sales Receipt 111 totaling $39

Sales Receipt 112 totaling $132

Sales receipt 113 totaling $50

 

Thanks.

 

 

 

1 REPLY 1
Yoshiro_Fujimori
16 - Nebula
16 - Nebula

 

For (1), when you want to get the ratio from the total, one of the patten is to use Summarize tool and then Append Fields tool.

 

Workflow

workflow.png

#ProductRegular priceSum_Regular pricepromotionSales PriceDiscount applied
1fruit533304.550.45
2vegetable733306.360.64
3meat12333010.911.09
4diary433303.640.36
5flowers533304.550.45

 

For (2), you can "group by" [Sales Receipts] with Summarize tool and add the sum field to the original table with Join tool

workflow2.png

ItemsPriceSales ReceiptsTotal
milk811139
fruit611139
bread511139
drink1011139
flower1011139
jam25112132
fish33112132
pork20112132
beef25112132
shrimp29112132
frozen2011350
breakfast811350
coffee1011350
tea1011350
lemon211350

 

Both of the above are popular patterns in your daily Alteryx life.

Hope this helps. Good luck.

Labels
Top Solution Authors