Which branches have occasional visitors?

Why ask this?

An outreach lead wants the branches with the most occasional visitors. Count identified people with one, two or three visits at the same location.

Start with the sample data

Open source.csv. In the first row of source.csv, Branch = East, Visitor = A.

What to say

Show the top three branches by visitors with at most three visits as a bar chart.

Processing time

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

  2. Aggregate · Count populated values in Visitor for each Branch, Visitor

    If a category appears more than once, its records contribute to one result. The first output row contains Branch = East, Visitor = A, nonblank_Visitor = 3.

  3. Find / Replace · Clear values matching the saved expression

    Find & Replace applies ^(?!(?:1|2|3)$)[0-9]+$ to nonblank_Visitor. For example, Branch = West, Visitor = A, nonblank_Visitor = 4 has its nonblank_Visitor value cleared.

  4. Aggregate · Count populated values in nonblank_Visitor for each Branch

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

  5. Column Renamer · Prepare the output columns

    nonblank_nonblank_Visitor becomes Visitors with at most 3 visits. The result exposes Branch, Visitors with at most 3 visits.

  6. Sort · Order the results

    Sort by Visitors with at most 3 visits (descending), then Branch (ascending). The first rows in order are East → West → North.

  7. Rank · Assign a rank

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

  8. Measure Filter · Keep the requested rows

    The filter uses rank <= 3 in keep mode. 3 rows remain including East.

  9. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Branch, Visitors with at most 3 visits.

  10. Charts · Draw the bar chart

    Use Branch for the categories and Visitors with at most 3 visits for the plotted values.

Native n0is canvas for Which branches have occasional visitors?

The chart

Workflow result in n0is
BranchVisitors with at most 3 visits
East2
West1
North0

How to use the result

For Branch East, the sample reports Visitors with at most 3 visits of 2.

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