What share of visits come from returning visitors?

Why ask this?

A branch manager planning staffing needs to know how much traffic comes from people who came back. A person who visited five times contributes five visits to this percentage, including the first. Anonymous visits are excluded.

Start with the sample data

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

What to say

Please show the top three branches by percentage of identified visits made by returning visitors as a bar chart. Exclude visits with missing identifiers.

Processing time

Recorded audio to chart ready
5.77 s
Transcript to chart ready
0.95 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 14 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 = 5.

  3. Math · Calculate visits_Visitor

    Apply [nonblank_Visitor] to each input row. The first row yields 5.

  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_Visitor, Sum visits_Visitor for each Branch

    If a category appears more than once, its records contribute to one result. The first output row contains Branch = East, sum_nonblank_Visitor = 5, sum_visits_Visitor = 8.

  6. Measure Filter · Keep the requested rows

    The filter uses sum_visits_Visitor > 0 in keep mode. 3 rows remain including East.

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

    Apply 100 * [sum_nonblank_Visitor] / [sum_visits_Visitor] to each input row. The first row yields 62.5.

  8. Sort · Order the results

    Sort by Visits by returning visitors (%) (descending), then Branch (ascending). The first rows in order are West → East → South.

  9. Rank · Assign a rank

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

  10. Measure Filter · Keep the requested rows

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

  11. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Branch, Visits by returning visitors (%).

  12. Charts · Draw the bar chart

    Use Branch for the categories and Visits by returning visitors (%) for the plotted values.

Native n0is canvas for What share of visits come from returning visitors?

The chart

Workflow result in n0is
BranchVisits by returning visitors (%)
West66.666667
East62.5
South0

How to use the result

For Branch West, the sample reports Visits by returning visitors (%) of 66.666667.

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