Which stores handle the most different orders?

Why ask this?

A fulfillment lead needs to see how many different orders each store handled. Multiple line items on one order count once at that store.

Start with the sample data

Open source.csv. In the first row of source.csv, Store = Oak, Order = 10.

What to say

Show the top two stores by distinct orders as a bar chart, breaking ties alphabetically.

Processing time

Recorded audio to chart ready
3.64 s
Transcript to chart ready
0.39 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. Unique Filter · Keep the first row for each Store, Order

    Read the rows in order and keep the first occurrence of each Store, Order value. The first retained record has Store = Oak, Order = 10.

  3. Aggregate · Count populated values in Order for each Store

    If a category appears more than once, its records contribute to one result. The first output row contains Store = Oak, nonblank_Order = 1.

  4. Column Renamer · Prepare the output columns

    nonblank_Order becomes distinct_Order. The result exposes Store, distinct_Order.

  5. Sort · Order the results

    Sort by distinct_Order (descending), then Store (ascending). The first rows in order are Pine → Ash → Oak.

  6. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, Pine is #1, Ash is #2, Oak is #3.

  7. Measure Filter · Keep the requested rows

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

  8. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Store, distinct_Order.

  9. Charts · Draw the bar chart

    Use Store for the categories and distinct_Order for the plotted values.

Native n0is canvas for Which stores handle the most different orders?

The chart

Workflow result in n0is
Storedistinct_Order
Pine2
Ash1

How to use the result

For Store Pine, the sample reports distinct_Order of 2.

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