QM plays with CODA !

icon picker
Dynamic “Group By” your table

One table, different views?

Coda is very powerful to sort data, group them and so on. But why would you only use it a static way when you can make it dynamic ! This is very easy to see your day move, and change the point of view according to your needs . Let’s have a little example with my favourite disney movie, shall we !
Let’s meet our little team, that has to deal with different projects and tasks. Let’s imagine you have some project like thoses beside. A classic table will look like this one :
Task
Project
People
Image
Month
Just eat insects
August
Eat insect as well
May
Motivating Simba
June
Sing Hakuna Matata
May
Lie to Simba
May
Scar Muphasa about Simba
August
Be a treator 😈
June
There are no rows in this table

Project
Be Cool & Sing “Hakuna Matata”
Fight Scar
Kill Muphasa
As you know, you can use “group” option to simply group thoses task for example by project, that would render something like that :
Grouped tasks
Project
Task
People
Image
3
Just eat insects
Eat insect as well
Sing Hakuna Matata
1
Motivating Simba
3
Lie to Simba
Scar Muphasa about Simba
Be a treator 😈

Make it Dynamic !

This is great, but very static. Knowing myself, I know that I would love to quickly change this to group by “People”, in order to see tasks for each guy in the team. Rather than going to options, and manually change it, a quicker way to proceed is to create a new column called “GroupBy” for example, that would change according to a select control like this one : ➡️
⬅️, called here “group_lionsking”. Then, fill this new colum with a formula using function to detect what you want.
It works quite easily : switchif(X=A, value for A, X=B, value for B, X=C, value for C, ...)
Applied to our example with people, project, month and even image :
SwitchIf(group_lionsking="People",thisRow.People,group_lionsking="Project",thisRow.Project,group_lionsking="Month",thisRow.Month,group_lionsking="Image",thisRow.Image)
And then, just group your table using “GroupBy” Column, and play with the control above 👍

This is our table grouped by
[ ]

GroupBy
Task
Project
People
Image
Month
7
Just eat insects
August
Eat insect as well
May
Motivating Simba
June
Sing Hakuna Matata
May
Lie to Simba
May
Scar Muphasa about Simba
August
Be a treator 😈
June

Group, but not only !

This works also with sort option. Even More Powerful : With CHARTS ! Let’s Consider a bar chart, with horizontal axis with “GroupBy” Column, that displays tasks count. If you play with the select control, it will dynamically move as well !

Hope you enjoy this little trick ! Please visit to leave any comment, suggestion, or see my twitter feed !

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.