Compare spent with budget by team
Why ask this?
Compare total spent with total budget for each team, even when individual records cover different amounts. Sum each field within its group, then divide the totals and multiply by 100. A group with a zero denominator has no percentage.
Start with the sample data
Open source.csv. In the first row of source.csv, Team = East, Spent = 2, Budget = 2.
What to say
For each team, chart total spent as a percentage of total budget.
Recorded with the Samantha synthetic voice.
Processing time
- Recorded audio to chart ready
- 2.50 s
- Transcript to chart ready
- 0.37 ms
One local replay from recorded audio through transcription and native chart data preparation. Recording time and screen painting are excluded.
See the transcript in the composer

How the canvas produces the result
- CSV Input · Read the sample records
source.csv supplies 3 rows. These records are the inputs to the next step.
- Aggregate · Sum Spent, Sum Budget for each Team
If a category appears more than once, its records contribute to one result. The first output row contains Team = East, sum_Spent = 3, sum_Budget = 6.
- Measure Filter · Keep the requested rows
The filter uses sum_Budget != 0 in keep mode. 2 rows remain including East.
- Math · Calculate Spent as % of Budget
Apply 100 * [sum_Spent] / [sum_Budget] to each input row. Set Decimal places to 2 to round the result. The first row yields 50.
- Charts · Draw the bar chart
Use Team for the categories and Spent as % of Budget for the plotted values. In Display Options, enable Signed value axis to keep both sides of zero visible.
To reproduce the bar scale, select the chart on the canvas. In its settings, enable Signed value axis. Negative and positive values use opposite sides of zero.

The chart

| Team | Spent as % of Budget |
|---|---|
| East | 50 |
| West | 50 |
How to use the result
For Team East, the sample reports Spent as % of Budget of 50.
Synthetic test audio. Screenshots from the recorded workflow in n0is.