Which clinics see patients two to three times?
Why ask this?
A clinic coordinator planning follow-up contact wants to count patients within a visit range. The registered and active patient fields identify different populations, so choose the intended one first.
Start with the sample data
Open source.csv. In the first row of source.csv, Clinic = East, Registered Patient = A, Active Patient = 0.
What to say
Make a bar chart of the top two clinics by patients with between two and three visits.
Processing time
- Recorded audio to chart ready
- 4.27 s
- Transcript to chart ready
- 0.49 ms
One local replay from recorded audio through transcription and native chart data preparation. Includes processing of the clarification and reply. Time waiting for a person to answer is excluded. Recording time and screen painting are excluded.
See the transcript in the composer

When n0is asks
Which patients column should I use for the ranking?
- Registered Patient
- Active Patient
Active Patient.
How the canvas produces the result
- CSV Input · Read the sample records
source.csv supplies 6 rows. These records are the inputs to the next step.
- Aggregate · Count populated values in Active Patient for each Clinic, Active Patient
If a category appears more than once, its records contribute to one result. The first output row contains Clinic = East, Active Patient = 0, nonblank_Active Patient = 2.
- Find / Replace · Clear values matching the saved expression
Find & Replace applies ^(?!(?:2|3)$)[0-9]+$ to nonblank_Active Patient. For example, Clinic = West, Active Patient = 7, nonblank_Active Patient = 4 has its nonblank_Active Patient value cleared.
- Aggregate · Count populated values in nonblank_Active 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_nonblank_Active Patient = 1.
- Column Renamer · Prepare the output columns
nonblank_nonblank_Active Patient becomes Active patients with 2 to 3 visits. The result exposes Clinic, Active patients with 2 to 3 visits.
- Sort · Order the results
Sort by Active patients with 2 to 3 visits (descending), then Clinic (ascending). The first rows in order are East → West.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, East is #1, West is #2.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including East.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Clinic, Active patients with 2 to 3 visits.
- Charts · Draw the bar chart
Use Clinic for the categories and Active patients with 2 to 3 visits for the plotted values.

The chart

| Clinic | Active patients with 2 to 3 visits |
|---|---|
| East | 1 |
| West | 0 |
How to use the result
For Clinic East, the sample reports Active patients with 2 to 3 visits of 1.
Synthetic test audio. Screenshots from the recorded workflow in n0is.