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 composerRecorded transcript entered in the native composer

How the canvas produces the result

  1. CSV Input · Read the sample records

    source.csv supplies 7 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 = Elm, Shopper = A, nonblank_Shopper = 2.

  3. 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.

  4. 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.

  5. Measure Filter · Keep the requested rows

    The filter uses nonblank_Shopper > 0 in keep mode. 2 rows remain including Elm.

  6. Math · Calculate Returning shoppers (%)

    Apply 100 * [nonblank_nonblank_Shopper] / [nonblank_Shopper] to each input row. The first row yields 25.

  7. Sort · Order the results

    Sort by Returning shoppers (%) (descending), then Store (ascending). The first rows in order are Oak → Elm.

  8. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Oak is #1, Elm is #2.

  9. Measure Filter · Keep the requested rows

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

  10. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Store, Returning shoppers (%).

  11. Charts · Draw the bar chart

    Use Store for the categories and Returning shoppers (%) for the plotted values.

Native n0is canvas for Which stores see shoppers come back?

The chart

Workflow result in n0is
StoreReturning shoppers (%)
Oak100
Elm25

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.