Which docks usually take longest to unload?
Why ask this?
A dock supervisor planning the next shift wants a typical unloading time at each dock. At Pier the three loads took 2, 8 and 80 minutes. The middle load took 8 minutes, while the unusually long load brings the average to 30.
Start with the sample data
Open source.csv. In the first row of source.csv, Dock = Pier, Unload minutes = 2.
What to say
Show the top two docks by median unload minutes as a bar chart, breaking ties alphabetically.
Processing time
- Recorded audio to chart ready
- 4.92 s
- Transcript to chart ready
- 0.61 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 8 rows. These records are the inputs to the next step.
- Column Filter · columnfilter
The first output row contains Dock = Pier, Unload minutes = 2.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Pier is #1, Pier is #5, Pier is #8.
- Aggregate · Take the minimum of Value position for each Dock
If a category appears more than once, its records contribute to one result. The first output row contains Dock = Pier, min_Value position = 1.
- Joiner · Attach the group summary
Match Dock to Dock in the other branch of the canvas. The first matched row contains Dock = Pier, Unload minutes = 2, Value position = 1, min_Value position = 1.
- Sort · Order the results
Sort by min_Value position (ascending), then Value position (ascending). The first rows in order are Pier → Pier → Pier → Bay.
- Constant · Set Stable order
Use the same value on each row so a stable rank preserves the sorted order.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Pier is #1, Pier is #2, Pier is #3.
- Aggregate · Take the minimum of Position, Take the maximum of Position for each Dock
If a category appears more than once, its records contribute to one result. The first output row contains Dock = Pier, min_Position = 1, max_Position = 3.
- Joiner · Attach the group summary
Match Dock to Dock in the other branch of the canvas. The first matched row contains Dock = Pier, Unload minutes = 2, Value position = 1, min_Value position = 1, Stable order = 1, Position = 1, min_Position = 1, max_Position = 3.
- Math · Calculate Center distance squared
Apply (2 * [Position] - [min_Position] - [max_Position]) * (2 * [Position] - [min_Position] - [max_Position]) to each input row. The first row yields 4.
- Measure Filter · Keep the requested rows
The filter uses Center distance squared <= 1 in keep mode. 4 rows remain including Pier.
- Aggregate · Average Unload minutes for each Dock
If a category appears more than once, its records contribute to one result. The first output row contains Dock = Pier, avg_Unload minutes = 8.
- Column Renamer · Prepare the output columns
avg_Unload minutes becomes median_Unload minutes. The result exposes Dock, median_Unload minutes.
- Sort · Order the results
Sort by median_Unload minutes (descending), then Dock (ascending). The first rows in order are Gate → Pier → Bay.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Gate is #1, Pier is #2, Bay is #3.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including Gate.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Dock, median_Unload minutes.
- Charts · Draw the bar chart
Use Dock for the categories and median_Unload minutes for the plotted values.

The chart

| Dock | median_Unload minutes |
|---|---|
| Gate | 11 |
| Pier | 8 |
How to use the result
For Dock Gate, the sample reports median_Unload minutes of 11.
Synthetic test audio. Screenshots from the recorded workflow in n0is.