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 composerRecorded transcript entered in the native composer

How the canvas produces the result

  1. CSV Input · Read the sample records

    source.csv supplies 5 rows. These records are the inputs to the next step.

  2. Column Filter · columnfilter

    The first output row contains Queue = Gold, Ticket age = 1.

  3. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Gold is #1, Gold is #2, Gold is #5.

  4. 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.

  5. 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.

  6. Sort · Order the results

    Sort by min_Value position (ascending), then Value position (ascending). The first rows in order are Gold → Gold → Gold → Blue.

  7. Constant · Set Stable order

    Use the same value on each row so a stable rank preserves the sorted order.

  8. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Gold is #1, Gold is #2, Gold is #3.

  9. 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.

  10. 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.

  11. 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.

  12. Measure Filter · Keep the requested rows

    The filter uses Center distance squared <= 1 in keep mode. 3 rows remain including Gold.

  13. 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.

  14. Column Renamer · Prepare the output columns

    avg_Ticket age becomes median_Ticket age. The result exposes Queue, median_Ticket age.

  15. Sort · Order the results

    Sort by median_Ticket age (descending), then Queue (ascending). The first rows in order are Blue → Gold.

  16. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Blue is #1, Gold is #2.

  17. Measure Filter · Keep the requested rows

    The filter uses rank <= 2 in keep mode. 2 rows remain including Blue.

  18. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Queue, median_Ticket age.

  19. Charts · Draw the bar chart

    Use Queue for the categories and median_Ticket age for the plotted values.

Native n0is canvas for Which queues have the oldest typical ticket?

The chart

Workflow result in n0is
Queuemedian_Ticket age
Blue6
Gold3

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.