Which queues have the oldest typical ticket?
Why ask this?
A support lead choosing where to investigate delays wants a typical ticket age in each queue. One very old ticket can move the mean much more than the median.
Start with the sample data
Open source.csv. In the first row of source.csv, Queue = Gold, Ticket age = 1.
What to say
Draw a bar chart of the top two queues by median ticket age.
Processing time
- Recorded audio to chart ready
- 2.29 s
- Transcript to chart ready
- 0.53 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 Queue = Gold, Ticket age = 1.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Gold is #1, Gold is #2, Gold is #5.
- Aggregate · Take the minimum of Value position for each Queue
If a category appears more than once, its records contribute to one result. The first output row contains Queue = Gold, min_Value position = 1.
- Joiner · Attach the group summary
Match Queue to Queue in the other branch of the canvas. The first matched row contains Queue = Gold, Ticket age = 1, 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 Gold → Gold → Gold → Blue.
- 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, Gold is #1, Gold is #2, Gold is #3.
- Aggregate · Take the minimum of Position, Take the maximum of Position for each Queue
If a category appears more than once, its records contribute to one result. The first output row contains Queue = Gold, min_Position = 1, max_Position = 3.
- Joiner · Attach the group summary
Match Queue to Queue in the other branch of the canvas. The first matched row contains Queue = Gold, Ticket age = 1, 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. 3 rows remain including Gold.
- Aggregate · Average Ticket age for each Queue
If a category appears more than once, its records contribute to one result. The first output row contains Queue = Gold, avg_Ticket age = 3.
- Column Renamer · Prepare the output columns
avg_Ticket age becomes median_Ticket age. The result exposes Queue, median_Ticket age.
- Sort · Order the results
Sort by median_Ticket age (descending), then Queue (ascending). The first rows in order are Blue → Gold.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Blue is #1, Gold is #2.
- 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 Queue, median_Ticket age.
- Charts · Draw the bar chart
Use Queue for the categories and median_Ticket age for the plotted values.

The chart

| Queue | median_Ticket age |
|---|---|
| Blue | 6 |
| Gold | 3 |
How to use the result
For Queue Blue, the sample reports median_Ticket age of 6.
Synthetic test audio. Screenshots from the recorded workflow in n0is.