Where are typical repair delays shortest?
Why ask this?
A repair coordinator comparing workshops wants the midpoint of each workshop’s observations. For two repairs lasting zero and two hours, the median is one hour. This gives the coordinator a way to compare a workshop with an even number of repairs to one with an odd number.
Start with the sample data
Open source.csv. In the first row of source.csv, Workshop = Blue, Repair hours = 0.
What to say
Make a bar chart of the bottom two workshops by median repair hours.
Processing time
- Recorded audio to chart ready
- 3.17 s
- Transcript to chart ready
- 0.78 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 5 rows. These records are the inputs to the next step.
- Column Filter · columnfilter
The first output row contains Workshop = Blue, Repair hours = 0.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Blue is #1, Blue is #4, Gold is #2.
- Aggregate · Take the minimum of Value position for each Workshop
If a category appears more than once, its records contribute to one result. The first output row contains Workshop = Blue, min_Value position = 1.
- Joiner · Attach the group summary
Match Workshop to Workshop in the other branch of the canvas. The first matched row contains Workshop = Blue, Repair hours = 0, 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 Blue → Blue → Gold → Gold.
- 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, Blue is #1, Blue is #2, Gold is #3.
- Aggregate · Take the minimum of Position, Take the maximum of Position for each Workshop
If a category appears more than once, its records contribute to one result. The first output row contains Workshop = Blue, min_Position = 1, max_Position = 2.
- Joiner · Attach the group summary
Match Workshop to Workshop in the other branch of the canvas. The first matched row contains Workshop = Blue, Repair hours = 0, Value position = 1, min_Value position = 1, Stable order = 1, Position = 1, min_Position = 1, max_Position = 2.
- 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 1.
- Measure Filter · Keep the requested rows
The filter uses Center distance squared <= 1 in keep mode. 5 rows remain including Blue.
- Aggregate · Average Repair hours for each Workshop
If a category appears more than once, its records contribute to one result. The first output row contains Workshop = Blue, avg_Repair hours = 1.
- Column Renamer · Prepare the output columns
avg_Repair hours becomes median_Repair hours. The result exposes Workshop, median_Repair hours.
- Sort · Order the results
Sort by median_Repair hours (ascending), then Workshop (ascending). The first rows in order are Blue → Gold → Red.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Blue is #1, Gold is #2, Red is #3.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including Blue.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Workshop, median_Repair hours.
- Charts · Draw the bar chart
Use Workshop for the categories and median_Repair hours for the plotted values.

The chart

| Workshop | median_Repair hours |
|---|---|
| Blue | 1 |
| Gold | 1 |
How to use the result
For Workshop Blue, the sample reports median_Repair hours of 1.
Synthetic test audio. Screenshots from the recorded workflow in n0is.