Compare stops with routes
Why ask this?
Compare total stops with total new routes for each yard, 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, Yard = East, Stops = 2, New Routes = 4, All Routes = 2.
What to say
For each yard, chart total stops as a percentage of total routes.
Recorded with the Daniel synthetic voice.
Processing time
- Recorded audio to chart ready
- 3.51 s
- Transcript to chart ready
- 0.54 ms
One local replay from recorded audio through transcription and native chart data preparation. Includes processing of the clarification and reply. Time waiting for a person to answer is excluded. Recording time and screen painting are excluded.
See the transcript in the composer

When n0is asks
Which quantity column should I divide by?
- New Routes
- All Routes
Option one.
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 Stops, Sum New Routes for each Yard
If a category appears more than once, its records contribute to one result. The first output row contains Yard = East, sum_Stops = 3, sum_New Routes = 12.
- Measure Filter · Keep the requested rows
The filter uses sum_New Routes != 0 in keep mode. 2 rows remain including East.
- Math · Calculate Stops as % of New Routes
Apply 100 * [sum_Stops] / [sum_New Routes] to each input row. Set Decimal places to 2 to round the result. The first row yields 25.
- Charts · Draw the bar chart
Use Yard for the categories and Stops as % of New Routes 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

| Yard | Stops as % of New Routes |
|---|---|
| East | 25 |
| West | 30 |
How to use the result
For Yard East, the sample reports Stops as % of New Routes of 25.
Synthetic test audio. Screenshots from the recorded workflow in n0is.