Cost per mile · choose miles
Why ask this?
A fleet planner comparing routes needs cost per mile across all trips on a route. Trip mileage determines how much each trip contributes.
Start with the sample data
Open source.csv. In the first row of source.csv, Carrier = A, Cost = 6, Planned miles = 2, Actual miles = 1.5.
What to say
Show a bar chart of average cost per mile by carrier. Divide total cost by total miles, ignoring rows with zero miles.
Processing time
- Recorded audio to chart ready
- 6.27 s
- Transcript to chart ready
- 0.55 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?
- Planned miles
- Actual miles
Actual miles.
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.
- Measure Filter · Keep the requested rows
The filter uses Actual miles > 0 in keep mode. 3 rows remain including A.
- Aggregate · Sum Cost, Sum Actual miles for each Carrier
If a category appears more than once, its records contribute to one result. The first output row contains Carrier = A, sum_Cost = 16, sum_Actual miles = 2.
- Math · Calculate Average cost per mile
Apply [sum_Cost] / [sum_Actual miles] to each input row. Set Decimal places to 2 to round the result. The first row yields 8.
- Charts · Draw the bar chart
Use Carrier for the categories and Average cost per mile for the plotted values.

The chart

| Carrier | Average cost per mile |
|---|---|
| A | 8 |
| B | 12 |
How to use the result
For Carrier A, the sample reports Average cost per mile of 8.
Synthetic test audio. Screenshots from the recorded workflow in n0is.