Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Application of pro rata discount

healsio2025
6 - Meteoroid

(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
15 - Aurora
15 - Aurora

 

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