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 composer

How the canvas produces the result
- CSV Input · Read the sample records
source.csv supplies 5 rows. These records are the inputs to the next step.
- 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.
- Math · Calculate visits_Shopper
Apply [nonblank_Shopper] to each input row. The first row yields 2.
- 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.
- 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.
- Measure Filter · Keep the requested rows
The filter uses sum_visits_Shopper > 0 in keep mode. 2 rows remain including Ash.
- Math · Calculate Visits by returning shoppers (%)
Apply 100 * [sum_nonblank_Shopper] / [sum_visits_Shopper] to each input row. The first row yields 66.666667.
- Sort · Order the results
Sort by Visits by returning shoppers (%) (descending), then Store (ascending). The first rows in order are Bay → Ash.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Bay is #1, Ash is #2.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including Bay.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Store, Visits by returning shoppers (%).
- Charts · Draw the bar chart
Use Store for the categories and Visits by returning shoppers (%) for the plotted values.

The chart

| Store | Visits by returning shoppers (%) |
|---|---|
| Bay | 100 |
| Ash | 66.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.