Help

How to sort average number when I group some concepts together?

Topic Labels: Base design
3408 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Tomasz_Pasko
4 - Data Explorer
4 - Data Explorer

Hi, I want to sort grouped fields by numbers but can’t find a solution. I am sending a video with an explanation. Anyone can help?

Link https://www.loom.com/share/0e12af542ea44f9fb525d32037f871c8

2 Replies 2
ScottWorld
18 - Pluto
18 - Pluto

Unfortunately, Airtable can’t sort by the values that are displayed in the summary bar. Airtable gives us no programmatic access to those summary numbers at all, which can be very frustrating.

The only way to workaround this problem would be to create a completely different table and use rollup fields.

In your case, you would create a table of your creative concepts — one record per creative concept. After that, you would create a linked record field where you would manually link each concept to all of its related records from your PRISM table. Then, you would create a rollup field to give you the average of the “cost per conversion” field for each concept. Then, you would sort this table by the average cost (your rollup field).

You could also automate the linking as well by using Airtable’s automations or Make’s advanced automations for Airtable.

Hope this helps! If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld

 

Perhaps you should consider a broader approach. Imagine creating a few “count” fields as an intermediate stage to reaching the averages.

image

In the screenshot is an example showing how a Count field is used to conditionally include certain records in a summation. Since the counts can be fully based on criteria in the record, it has the same properties as you would apply when grouping.

Once you have the counts arrayed, I think the averages and other computations are simple final steps to get the aggregations you described in the video.