docs > aggregates

Aggregates and Analyzing Data

Data analysis relies on combining, changing, and investigating data to find useful information that can be used to make decisions. Aggregates are an important tool in your arsenal like structured referencing, or joins. Aggregates allow you to easily add together(SUM), count the total number( COUNT), average the number(AVG), find the minimum value(MIN), and find the maximum value(MAX) of your data points.

What is an aggregate?

An aggregate in Sourcetable is the calculation/manipulation of your data in a way that you choose in order to summarize or glean insights. They are great for the first pass at your data.

Aggregates GIF

Using Aggregates

Sales data is great data for demonstrating the uses of aggregates. They allow you to average data, add data together, find the minimum, find the maximum, and even to count the data points. Once your integrations have finished syncing you will be able to access your data in a workbook by clicking on Source.

Sources Location

After choosing the source for the data, the application will show all of the tables associated with that integration allowing you to choose which table you would like.

Sources Location

For ease of use the orders table was used. Once the table is selected the data table will open and you will be able to add in any aggregates that you want under the Aggregates area.

Aggregates GIF

There is already a Group by for time in the Sales-Orders data table for order.processed_at by month. The time grouping is useful for analysis because it allows the changes in trends, whether positive or negative, to be more obvious. Using the sales data you can calculate the following with the aggregates on Sourcetable:

  1. AVG - Average the total purchase orders for the sales data by month Click into Aggregates then click + Add Aggregate Select order.total_price for the column Select AVG for the calculation type Click Update Table
  2. COUNT - Count the number of orders Click into Aggregates then click + Add Aggregate Select order.id for the column Select COUNT for the calculation type Click Update Table
  3. MIN - Minimum amount of all of the purchase orders for sales Click into Aggregates then click + Add Aggregate Select order.total_price for the column Select MIN for the calculation type Click Update Table
  4. MAX - Maximum amount of all of the purchase orders for sales Click into Aggregates then click + Add Aggregate Select order.total_price for the column Select MAX for the calculation type Click Update Table
  5. SUM - sum(add) up the total amount of sales Click into Aggregates then click + Add Aggregate Select order.total_price for the column Select SUM for the calculation type Click Update Table

More complicated uses for Aggregates

You can use the aggregates tool to look at the count, sum, average, minimum, and maximum in relation to any of the columns in your data table. For instance, you can get the count of orders by province.

Orders by Province

Conclusion

Aggregates are a great way to manipulate data in Sourcetable and should be considered to help get your analysis done faster and easier. Not only can you create aggregate from data tables, but you can also create them from multiple data sources all at once. This should give you a basic idea of how to use aggregates. There is a lot more that it can do but these are the main functions to get you started. So next time you need to manipulate some data sourcetable aggregates will be there for you!

Sort data tables too!

Aggregates Sort
Drop CSV