I have a form that i am sending out to my team members to understand how much time they anticipate they will spend on a project.
I'd like to create a dashboard that shows in a bar chart how much time each member of the team anticipates to spend this week by project. So for example a bar should look like [----Blue----][--Green--][-Red-] with blue representing one project, green representing another, and red another. giving us the idea that the team member's time is 80% spoken for this week, with 30% going to blue project, 20% going to green, etc.
The issue that I am running into is that the way that we have structured the form, the output table looks wide. so it looks like :
Survey Entry | Name (link to project record) | Survey Date | Projects (link to another record) | Blue Project | Green Project | Red Project |
1 | Sarah Johnson | 11/20 | Blue Project, Green Project | 40% | 60% | |
2 | Javier Smith | 11/20 | Green Project, Red Project | 30% | 50% | |
3 | Charles Estevez | 11/20 | Blue Project, Red Project | 20% | 70% |
In order for me to create the bar graph that i would like, Airtable will only recieve the information if it looks like this:
Name | Project | % of time |
Sarah Johnson | Blue Project | 40% |
Sarah Johnson | Green Project | 60% |
Javier Smith | Green Project | 30% |
Javier Smith | Red Project | 50% |
Charles Estevez | Blue Project | 20% |
Charles Estevez | Red Project | 70% |
I know how I might do this in R Studio, but I do not know how I would do this in Airtable.
How do I convert the top table - a wide one - into the bottom table - a long one - for the sake of creating a bar chart in an interface?
Some further specifics:
- Our team's projects are changing all the time, so i don't want to hardcode something if I don't have to.
- I am open to changing the format of the form, or learning how to have the bar chart use the existing format of responses.
- Maybe this could be done with an automation? I am not sure.