Hi! I’m Brian, the social media manager at Coda. When I’m not trawling Twitter, I make fun Coda-themed memes for everyone to enjoy. But today I wanted to share a simple solution I came up with for an issue that one of our Twitter followers had last week:
Problem
The user had a lookup column that allows multiple select, and wanted to generate a column chart with each option charted individually. In this instance, Coda automatically rolls up the two selections into one column, as shown below.
Solution
While it may not be sophisticated, this solution uses something that you have already built: the table that the lookup column is pulling from. It already has each option in individual rows, so it just needs a new column; I named mine “Total”.
In that column, I added this formula:
Projects.filter(Media.contains(thisRow)).Amount.sum()
And it’s that easy. Now the Lookup table can be charted with the right values
I know this is really basic for most of you, but if it can help just one person I’ll be stoked. And if you want to play around with my test doc, you can check that out here: