Start Free Trial

Alteryx Designer Desktop Discussions

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

Row Average Calculation

Alteryxexpert
8 - Asteroid

I have below Data

ItemDateSales
Chair01/01/2024100
Chair02/01/2024200
Chair03/01/2024300
Chair04/01/2024200
Chair05/01/2024200
Chair06/01/2024200

I need to calculate daily sales average like output below,.

ItemDateSalesSales Avg
Chair01/01/2024100100
Chair02/01/2024200150
Chair03/01/2024300200
Chair04/01/2024200200
Chair05/01/2024200200
Chair06/01/2024200200

 

I'm wondering which macro does this for me, can some one help?

6 REPLIES 6
Hsandness
8 - Asteroid

Hi,

 

You could use a RecordID and Multi-Row Formula tool to achieve this.

davidskaife
14 - Magnetar

Hi @Alteryxexpert 

 

You could use the Multi-Row Formula tools to create a running average:

 

Screenshot 2025-04-23 154650.png

 

First tool creates a running total (grouped by Item), second tool creates a Record ID (again grouped by Item), Formula tool then divides the running total by the record id. Finally remove any fields not required.

Alteryxexpert
8 - Asteroid

I want this calculation to start fresh on every new month, will the same work?

flying008
15 - Aurora

Hi, @Alteryxexpert 

 

FYI.

 

录制_2025_04_24_14_08_26_477.gif

 

ItemDateSalesSales Avg
Chair01/01/2024100100
Chair02/01/2024200150
Chair03/01/2024300200
Chair04/02/2024200200
Chair05/02/2024200200
Chair06/02/2024200200
Qiu
21 - Polaris
21 - Polaris
davidskaife
14 - Magnetar

Hi @Alteryxexpert 

 

Not as it stands, i've attached a revised workflow and added in a Formula tool to generate Month/Year column, and added that is as a Group By criteria for the Multi-Row Formula tools.

 

Screenshot 2025-04-24 102003.png

Labels
Top Solution Authors