Dec 28, 2017 03:38 PM
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:
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
Jan 02, 2018 10:05 PM
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.
Jan 03, 2018 12:29 AM
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.
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.
Something like this?
Jan 03, 2018 03:05 AM
You could use ARRAYJOIN()
as the aggregation function and skip the commas…
Jan 03, 2018 01:44 PM
Thank you! I couldn’t find this solution.
Jan 03, 2018 01:49 PM
@W_Vann_Hall There are some odd commas in the table when I use ARRAYJOIN()
Is there anything I can do about that?
Jan 03, 2018 02:03 PM
You have a separator
parameter, use ""
: https://support.airtable.com/hc/en-us/articles/203255215-Formula-field-reference#text
Jan 03, 2018 03:59 PM
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.
Jan 03, 2018 11:12 PM
That worked perfectly. Thanks!
Jan 08, 2018 10:40 AM
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?