Where do returning drivers make the fewest visits?

Why ask this?

A dispatcher planning check-in support wants to estimate how many depot arrivals come from drivers who know that depot. Weight each driver by the number of recorded arrivals there.

Start with the sample data

Open source.csv. In the first row of source.csv, Depot = Oak, Driver = 0.

What to say

Create a bar chart of the bottom two depots by percentage of identified visits made by returning drivers. Exclude visits with missing identifiers.

Processing time

Recorded audio to chart ready
5.95 s
Transcript to chart ready
0.45 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. Aggregate · Count populated values in Driver for each Depot, Driver

    If a category appears more than once, its records contribute to one result. The first output row contains Depot = Oak, Driver = 0, nonblank_Driver = 2.

  3. Math · Calculate visits_Driver

    Apply [nonblank_Driver] to each input row. The first row yields 2.

  4. Find / Replace · Count visits from returning identifiers

    A count of zero or one contributes zero visits to the numerator. For an identifier seen twice or more, keep all of its visits. The copy made by Math still contains the total before this change.

  5. Aggregate · Sum nonblank_Driver, Sum visits_Driver for each Depot

    If a category appears more than once, its records contribute to one result. The first output row contains Depot = Oak, sum_nonblank_Driver = 2, sum_visits_Driver = 3.

  6. Measure Filter · Keep the requested rows

    The filter uses sum_visits_Driver > 0 in keep mode. 3 rows remain including Oak.

  7. Math · Calculate Visits by returning drivers (%)

    Apply 100 * [sum_nonblank_Driver] / [sum_visits_Driver] to each input row. The first row yields 66.666667.

  8. Sort · Order the results

    Sort by Visits by returning drivers (%) (ascending), then Depot (ascending). The first rows in order are Elm → Oak → Bay.

  9. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Elm is #1, Oak is #2, Bay is #3.

  10. Measure Filter · Keep the requested rows

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

  11. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Depot, Visits by returning drivers (%).

  12. Charts · Draw the bar chart

    Use Depot for the categories and Visits by returning drivers (%) for the plotted values.

Native n0is canvas for Where do returning drivers make the fewest visits?

The chart

Workflow result in n0is
DepotVisits by returning drivers (%)
Elm0
Oak66.666667

How to use the result

For Depot Elm, the sample reports Visits by returning drivers (%) of 0.

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