Which hubs have the longest median dispatch time?

Why ask this?

A dispatcher choosing which hubs to investigate wants typical dispatch time. East’s three observations put the middle at four minutes. West’s two observations, eight and ten minutes, put its midpoint at nine.

Start with the sample data

Open source.csv. In the first row of source.csv, Hub = East, Dispatch minutes = 1.

What to say

Show the top two hubs by median dispatch minutes as a bar chart, breaking ties alphabetically.

Processing time

Recorded audio to chart ready
4.80 s
Transcript to chart ready
0.63 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 6 rows. These records are the inputs to the next step.

  2. Column Filter · columnfilter

    The first output row contains Hub = East, Dispatch minutes = 1.

  3. Rank · Assign a rank

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

  4. Aggregate · Take the minimum of Value position for each Hub

    If a category appears more than once, its records contribute to one result. The first output row contains Hub = East, min_Value position = 2.

  5. Joiner · Attach the group summary

    Match Hub to Hub in the other branch of the canvas. The first matched row contains Hub = East, Dispatch minutes = 1, Value position = 2, min_Value position = 2.

  6. Sort · Order the results

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

  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, South is #1, East is #2, East is #3.

  9. Aggregate · Take the minimum of Position, Take the maximum of Position for each Hub

    If a category appears more than once, its records contribute to one result. The first output row contains Hub = South, min_Position = 1, max_Position = 1.

  10. Joiner · Attach the group summary

    Match Hub to Hub in the other branch of the canvas. The first matched row contains Hub = South, Dispatch minutes = 0, Value position = 1, min_Value position = 1, Stable order = 1, Position = 1, min_Position = 1, max_Position = 1.

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

  12. Measure Filter · Keep the requested rows

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

  13. Aggregate · Average Dispatch minutes for each Hub

    If a category appears more than once, its records contribute to one result. The first output row contains Hub = South, avg_Dispatch minutes = 0.

  14. Column Renamer · Prepare the output columns

    avg_Dispatch minutes becomes median_Dispatch minutes. The result exposes Hub, median_Dispatch minutes.

  15. Sort · Order the results

    Sort by median_Dispatch minutes (descending), then Hub (ascending). The first rows in order are West → East → South.

  16. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, West is #1, East is #2, South is #3.

  17. Measure Filter · Keep the requested rows

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

  18. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Hub, median_Dispatch minutes.

  19. Charts · Draw the bar chart

    Use Hub for the categories and median_Dispatch minutes for the plotted values.

Native n0is canvas for Which hubs have the longest median dispatch time?

The chart

Workflow result in n0is
Hubmedian_Dispatch minutes
West9
East4

How to use the result

For Hub West, the sample reports median_Dispatch minutes of 9.

Synthetic test audio. Screenshots from the recorded workflow in n0is.