A common charting snag: you build a stacked bar chart of call outcomes by county, expecting each county's bar to show its outcome mix as percentages, but the chart shows raw call counts instead. Busy counties tower over quiet ones and nothing adds up to 100%.
This came up in the Quickbase community thread Help me figure out why my chart is not charting. Here's the full fix.
Why the chart shows counts
A stacked bar chart totals the Y value for every record in each X/series group. When Y is "Calls" (a count), each segment is the number of calls with that outcome, so each bar's height is the county's total call count. To get percentages, each call has to carry its share of its county's total. Sum those shares and every county comes to exactly 100%.
What you'll build
- A Counties parent table (one county has many calls)
- A summary field on Counties: [# of Calls]
- A lookup of [# of Calls] on Calls
- A Formula - Percent field on Calls: [Share of County]
- The chart's Y value set to the total of [Share of County]
Step 1: Create the Counties table (if you don't have one)
If County is just a text field on Calls today, you don't need to re-enter anything:
- Create a new table called Counties with a text field County Name.
- In the Counties table settings, under Advanced settings, set County Name as the key field.
- Import or paste the distinct county names into Counties.
- Create the relationship (Counties has many Calls). When asked for the reference field, choose your existing County text field on Calls. Because the values match the key, every call links to its county automatically.
Step 2: Add the summary field on Counties
- On the Counties table, add a Summary field from the Counties–Calls relationship.
- Choose Count and name it # of Calls.
- Important: add the same conditions your chart uses (call type, date range, excluded call types). If the chart filters out some calls but the summary counts them, the shares won't add up to 100%.
Tip: if you filter the chart by a date range that changes often, consider a formula checkbox on Calls such as [Include in Outcome Chart] and use it in both the summary condition and the chart filter, so they never drift apart.
Step 3: Look up the total on Calls
On the Calls table, add a lookup field for [# of Calls] through the same relationship.
Step 4: Add the share formula on Calls
Add a Formula - Percent field named Share of County:
If([# of Calls] > 0, 1 / [# of Calls])
If a county has 4 qualifying calls, each one carries 25%.
Step 5: Update the chart
- Open the chart report and keep it as a Stacked bar chart.
- X axis (categories): County.
- Series: Outcome.
- Y axis (values): Share of County, summarized as Total.
- Keep the same filters as the summary field conditions.
Worked example
| County | Call taker | Outcome | # of Calls (lookup) | Share of County |
|---|---|---|---|---|
| Utah | Sarah Lee | Resolved | 4 | 25% |
| Utah | Mike Chen | Resolved | 4 | 25% |
| Utah | Sarah Lee | Referred | 4 | 25% |
| Utah | Mike Chen | No Answer | 4 | 25% |
| Salt Lake | Sarah Lee | Resolved | 2 | 50% |
| Salt Lake | Mike Chen | Referred | 2 | 50% |
Utah's bar shows Resolved 50%, Referred 25%, No Answer 25%. Salt Lake's shows Resolved 50%, Referred 50%. Both total 100%.
Troubleshooting
- Bars total less than 100%: the chart filter is stricter than the summary condition. Match them.
- Bars total more than 100%: the summary condition is stricter than the chart filter, or some calls aren't linked to a county.
- A county is missing: check for calls whose County value doesn't exactly match a Counties key (extra spaces, spelling).
- Blank shares: the call isn't linked to a county, so [# of Calls] is empty.