Which clinics serve the most distinct patients?

Why ask this?

A clinic manager planning outreach needs to know how many different patients each clinic serves. Repeat appointments raise visit volume while adding no new patient to that clinic’s reach.

Start with the sample data

Open source.csv. In the first row of source.csv, Clinic = East, Patient = P1.

What to say

Please show the top three clinics by number of distinct patients as a bar chart, breaking ties alphabetically.

Processing time

Recorded audio to chart ready
4.17 s
Transcript to chart ready
0.40 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 6 rows. These records are the inputs to the next step.

  2. Unique Filter · Keep the first row for each Clinic, Patient

    Read the rows in order and keep the first occurrence of each Clinic, Patient value. The first retained record has Clinic = East, Patient = P1.

  3. Aggregate · Count populated values in Patient for each Clinic

    If a category appears more than once, its records contribute to one result. The first output row contains Clinic = East, nonblank_Patient = 1.

  4. Column Renamer · Prepare the output columns

    nonblank_Patient becomes distinct_Patient. The result exposes Clinic, distinct_Patient.

  5. Sort · Order the results

    Sort by distinct_Patient (descending), then Clinic (ascending). The first rows in order are West → East → North.

  6. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, West is #1, East is #2, North is #3.

  7. Measure Filter · Keep the requested rows

    The filter uses rank <= 3 in keep mode. 3 rows remain including West.

  8. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Clinic, distinct_Patient.

  9. Charts · Draw the bar chart

    Use Clinic for the categories and distinct_Patient for the plotted values.

Native n0is canvas for Which clinics serve the most distinct patients?

The chart

Workflow result in n0is
Clinicdistinct_Patient
West2
East1
North0

How to use the result

For Clinic West, the sample reports distinct_Patient of 2.

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