Which stores receive more traffic from repeat shoppers?

Why ask this?

A store manager planning loyalty staffing wants the fraction of foot traffic generated by repeat shoppers. Count an identified shopper’s visits at each store separately.

Start with the sample data

Open source.csv. In the first row of source.csv, Store = Ash, Shopper = 0.

What to say

Show the top two stores by percentage of identified visits made by returning shoppers as a bar chart. Exclude visits with missing identifiers.

Processing time

Recorded audio to chart ready
5.73 s
Transcript to chart ready
0.46 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. Aggregate · Count populated values in Shopper for each Store, Shopper

    If a category appears more than once, its records contribute to one result. The first output row contains Store = Ash, Shopper = 0, nonblank_Shopper = 2.

  3. Math · Calculate visits_Shopper

    Apply [nonblank_Shopper] 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_Shopper, Sum visits_Shopper for each Store

    If a category appears more than once, its records contribute to one result. The first output row contains Store = Ash, sum_nonblank_Shopper = 2, sum_visits_Shopper = 3.

  6. Measure Filter · Keep the requested rows

    The filter uses sum_visits_Shopper > 0 in keep mode. 2 rows remain including Ash.

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

    Apply 100 * [sum_nonblank_Shopper] / [sum_visits_Shopper] to each input row. The first row yields 66.666667.

  8. Sort · Order the results

    Sort by Visits by returning shoppers (%) (descending), then Store (ascending). The first rows in order are Bay → Ash.

  9. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Bay is #1, Ash is #2.

  10. Measure Filter · Keep the requested rows

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

  11. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Store, Visits by returning shoppers (%).

  12. Charts · Draw the bar chart

    Use Store for the categories and Visits by returning shoppers (%) for the plotted values.

Native n0is canvas for Which stores receive more traffic from repeat shoppers?

The chart

Workflow result in n0is
StoreVisits by returning shoppers (%)
Bay100
Ash66.666667

How to use the result

For Store Bay, the sample reports Visits by returning shoppers (%) of 100.

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