Help

How can I roll up records by month & type, and show aggregated titles in "cells"?

Topic Labels: Views
4483 10
cancel
Showing results for 
Search instead for 
Did you mean: 
R_Felciano_QIAG
6 - Interface Innovator
6 - Interface Innovator

We have entered a large number of 2018 marketing activities into our new AirTable account. These include the title of the activity, type of activity (e.g. website updates, emailings, conference presentations, etc) and date the activities are intended to take place.

I would like to generate a roll up of these that shows the full year of activities as follows:

  • 12 months as columns (Jan, Feb, Mar, etc)
  • Activity type as rows (Site Updates, Emailings, Presentations, etc)
  • Each “cell” contains a list of the activities in of that type in that month, for example as a comma-delimited aggregate of the activity titles.

This is sort of like a pivot table, but the aggregation shows the actual content (titles) rather than a numeric aggregation (sum or count). We used to do this in Excel, by hand, so I suppose that is technically still an option, but I’m wondering if AirTable can automate this.

Thanks,

Ramon

10 Replies 10
Andrew_Johnson1
8 - Airtable Astronomer
8 - Airtable Astronomer

Try using the Group functionality of Airtable, it should help you getting the functionality that you are wanting…
Also try using the Kanban view…Its a pretty neat view that Airatble has incorporated.

The reply of @Andrew_Johnson1 is the fastest way of a summed result. If you want to achieve an Excel-like view it requires a lot more work.

I think of:
Creating a 2nd table (PIVOT TABLE) and have the primary field contain your type of events (unique names).
In your main table make sure you link your type of events field to the PIVOT TABLE.

In your main table create 12 formula fields with the names of every month. Have something like:
IF(Activity=BLANK(),BLANK(),IF(DATETIME_FORMAT(Date,‘MM’)=1,Activity&", “,”"))
This is for January (Month 1). Do the same for every other column. Of course you may hide all the columns when you’re done.

Events Main Table

In the Pivot Table create 12 Roll up fields, and make sure that you CONCATENATE all values. That’s why I added a comma after every activity in the Month field in the Main Table.

Evants Pivot Table

Something like this?

You could use ARRAYJOIN() as the aggregation function and skip the commas…

Thank you! I couldn’t find this solution.

@W_Vann_Hall There are some odd commas in the table when I use ARRAYJOIN()
PIVOT TABLE ARRAYJOIN

Is there anything I can do about that?

Oh, sorry – to get rid of the extraneous commas when you have empty strings in some of your linked records, use an aggregation function of

ARRAYCOMPACT(values)

That would return Activity 2, Activity 1, Activity 5 and so on. If you need for the items to be concatenated without spaces between them — Activity 2,Activity 1,Activity 5 — you can use

ARRAYJOIN(ARRAYCOMPACT(values))

as your aggregation function.

That worked perfectly. Thanks!

Thanks @Andre_Zijlstra this looks pretty close to what I’m looking for. Any suggestions for how to avoid the stray / dangling comma at the end of the concatenated list of entries?