Which stores see shoppers come back?
Why ask this?
A retail lead comparing repeat business across stores wants each identified shopper to have equal weight. The percentage gives stores with different customer counts a common scale.
Start with the sample data
Open source.csv. In the first row of source.csv, Store = Elm, Shopper = A.
What to say
Create a bar chart of the top two stores by percentage of identified shoppers who returned. Skip groups with no identified shoppers.
Processing time
- Recorded audio to chart ready
- 5.54 s
- Transcript to chart ready
- 0.42 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 7 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 = Elm, Shopper = A, nonblank_Shopper = 2.
- Find / Replace · Mark identifiers that appeared fewer than twice
In nonblank_Shopper, clear counts of zero or one. Counts of two or more stay populated. The next count can include each returning identifier once while keeping every location in the table.
- Aggregate · Count populated values in nonblank_Shopper, Count populated values in Shopper for each Store
If a category appears more than once, its records contribute to one result. The first output row contains Store = Elm, nonblank_nonblank_Shopper = 1, nonblank_Shopper = 4.
- Measure Filter · Keep the requested rows
The filter uses nonblank_Shopper > 0 in keep mode. 2 rows remain including Elm.
- Math · Calculate Returning shoppers (%)
Apply 100 * [nonblank_nonblank_Shopper] / [nonblank_Shopper] to each input row. The first row yields 25.
- Sort · Order the results
Sort by Returning shoppers (%) (descending), then Store (ascending). The first rows in order are Oak → Elm.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, Oak is #1, Elm is #2.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including Oak.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Store, Returning shoppers (%).
- Charts · Draw the bar chart
Use Store for the categories and Returning shoppers (%) for the plotted values.

The chart

| Store | Returning shoppers (%) |
|---|---|
| Oak | 100 |
| Elm | 25 |
How to use the result
For Store Oak, the sample reports Returning shoppers (%) of 100.
Synthetic test audio. Screenshots from the recorded workflow in n0is.