Shortest average route distances
Why ask this?
A route planner reviewing trip lengths wants to identify routes with short average trips before considering changes to dispatch coverage.
Start with the sample data
Open source.csv. In the first row of source.csv, Route = South, Distance = 3.
What to say
Make a bar chart of the bottom two routes by average distance.
Processing time
- Recorded audio to chart ready
- 2.31 s
- Transcript to chart ready
- 0.34 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 4 rows. These records are the inputs to the next step.
- Aggregate · Average Distance for each Route
If a category appears more than once, its records contribute to one result. The first output row contains Route = South, avg_Distance = 3.
- Sort · Order the results
Sort by avg_Distance (ascending), then Route (ascending). The first rows in order are East → South → West.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, East is #1, South is #2, West is #3.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including East.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Route, avg_Distance.
- Charts · Draw the bar chart
Use Route for the categories and avg_Distance for the plotted values.

The chart

| Route | avg_Distance |
|---|---|
| East | 2.5 |
| South | 3 |
How to use the result
For Route East, the sample reports average Distance of 2.5.
Synthetic test audio. Screenshots from the recorded workflow in n0is.