Average by group
The Average by group step calculates the average of all values in one or more columns. This step is similar to the AVERAGEIF function in Excel.
Input/output
Our input data has 11 rows of order information showing how much of a particular food item was sold to a given customer.
![](https://cdn.prod.website-files.com/663559c9207f91d5a1ba91e4/66c7bf65c2b7d88b4d6ddea6_6210086c5a1f381a6f591aef_1-1.png)
After we run our dataset through the Average by group step, we find the average number of each food item sold per order.
![](https://cdn.prod.website-files.com/663559c9207f91d5a1ba91e4/66c7bf64c2b7d88b4d6dde9b_621008996da5e71cf56bcd97_1-2.png)
Default settings
When a data source is first connected, this step will auto-select a numeric column (like 'Quantity Sold') and a data-type column to take a first pass at averaging by group.
![](https://cdn.prod.website-files.com/663559c9207f91d5a1ba91e4/66c7bf65c2b7d88b4d6ddeb5_6210096d6da5e7bab76c291e_Screen%2520Shot%25202022-02-18%2520at%25204.02.19%2520PM.png)
Custom settings
You may choose any column to average, and group the average according to any one column, or multiple columns, in your data set.
![](https://cdn.prod.website-files.com/663559c9207f91d5a1ba91e4/66c7bf65c2b7d88b4d6ddeb8_621009af6da5e7d3cb6c4c5c_1-4.png)
You can optionally apply this to only the selected columns or apply to 'all columns except'. We'd recommend using the option that requires fewer column selections to save yourself time.
![](https://cdn.prod.website-files.com/663559c9207f91d5a1ba91e4/66c7bf65c2b7d88b4d6ddeab_62100a29f33734ce66cdc18a_1-5.png)