Which clinics see patients exactly twice?
Why ask this?
A clinic coordinator reviewing follow-up visits needs to count patients who appeared exactly twice in the period. Choose the patient identifier that belongs to the review before counting.
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 exactly two visits.
Processing time
- Recorded audio to chart ready
- 3.93 s
- Transcript to chart ready
- 0.50 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 5 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)$)[0-9]+$ to nonblank_Active Patient. For example, Clinic = West, Active Patient = 7, nonblank_Active Patient = 3 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 exactly 2 visits. The result exposes Clinic, Active patients with exactly 2 visits.
- Sort · Order the results
Sort by Active patients with exactly 2 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 exactly 2 visits.
- Charts · Draw the bar chart
Use Clinic for the categories and Active patients with exactly 2 visits for the plotted values.

The chart

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