Can I create a chart from a summary table?

  • 1
  • 1
  • Question
  • Updated 1 year ago
  • Answered
Is it possible to create a pie chart with totals of the whole.
I know it is possible to create a summary of a table to create totals. How can I use those totals to create a Pie Chart?
Photo of Paul Trimor

Paul Trimor

  • 488 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
  • 1
Photo of Chuck Grigsby

Chuck Grigsby

  • 1,978 Points 1k badge 2x thumb
You should be able to just create summary fields or formula fields to get your totals in a field. Then create a chart and use those values.
Photo of Paul Trimor

Paul Trimor

  • 468 Points 250 badge 2x thumb
Hey Chuck thanks for all your help thus far. 

I have a table where each row represents a school and a count of disabilities in that school. 
 
 id   school                          deaf         blind   ..etc 
1      New York University            3             4               ...
2      Georgia State University       5             2               ... 

Then I wanted to aggregate the number for each column; I want to create a pie chart with values Sum(deaf), Sum(blind), .....

So I can see as a how disabilities compare to the whole. School doesn't matter, just want to add up disability groups/ 
Photo of Chuck Grigsby

Chuck Grigsby

  • 1,978 Points 1k badge 2x thumb


Is this what you're looking for? Basically what I did was created another table for disabilities and created a relationship where schools are the parent table.

Then you create a dropdown field in the child table called type of disability and enter all the options there. Make sure to check the options in the field settings to prevent duplicates.



Then go to the child table and create a pie chart and use these settings



Feel to reach out directly if you get stuck along the way. Chuck@Chuck.Support
Good luck and hope this helps! Also I understand you may have a lot of records and this changes the structure. It would not be difficult to export those values and import them back in after the new table was created.
Photo of Paul Trimor

Paul Trimor

  • 468 Points 250 badge 2x thumb
Thanks so much for the detailed response Chuck, 

I was wanted it so that the chart would update automatically, but I think this is the best way to create a summary Chart. 

I think what I want has to be hand coded with javascript HighChart and Quickbase's API. 
Photo of Chuck Grigsby

Chuck Grigsby

  • 1,978 Points 1k badge 2x thumb
Sure thing! If you need help with custom API stuff let me know, that's my specialty! Chuck@Chuck.support

happy to demo some examples.
Photo of Nenad Ilic

Nenad Ilic

  • 734 Points 500 badge 2x thumb
Hi Guys, I have a similar situation, but a bit different, and I could use a help from your side.

In my case I have one table where I use checkboxes to select services that are needed to be implemented. and by using summary I am able to sum up all services per project that are used, and create a table (summary) with totals.

I would also like to create a pie chart showing which services are most popular, but somehow I am having issues in creating a field or summary field where I could count them all. 

Each service presents a separate checkbox field, thus I am confused on how to do this.

Could you please advise on what my best option would be?

KR

Nenad
(Edited)