Which sites have the most active devices?
Why ask this?
An IT lead comparing the installed inventory with active usage needs to choose which device identifier to count. A device that reports twice at the same site counts once there.
Start with the sample data
Open source.csv. In the first row of source.csv, Site = West, Installed Device = W1, Active Device = 0.
What to say
Make a bar chart of the top two sites by distinct devices.
Processing time
- Recorded audio to chart ready
- 3.62 s
- Transcript to chart ready
- 0.41 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 devices column should I use for the ranking?
- Installed Device
- Active Device
Active Device.
How the canvas produces the result
- CSV Input · Read the sample records
source.csv supplies 4 rows. These records are the inputs to the next step.
- Unique Filter · Keep the first row for each Site, Active Device
Read the rows in order and keep the first occurrence of each Site, Active Device value. The first retained record has Site = West, Installed Device = W1, Active Device = 0.
- Aggregate · Count populated values in Active Device for each Site
If a category appears more than once, its records contribute to one result. The first output row contains Site = West, nonblank_Active Device = 2.
- Column Renamer · Prepare the output columns
nonblank_Active Device becomes distinct_Active Device. The result exposes Site, distinct_Active Device.
- Sort · Order the results
Sort by distinct_Active Device (descending), then Site (ascending). The first rows in order are West → East.
- Rank · Assign a rank
The ordered rows receive positions starting at 1. Here, West is #1, East is #2.
- Measure Filter · Keep the requested rows
The filter uses rank <= 2 in keep mode. 2 rows remain including West.
- Column Renamer · Prepare the output columns
Remove rank. The result exposes Site, distinct_Active Device.
- Charts · Draw the bar chart
Use Site for the categories and distinct_Active Device for the plotted values.

The chart

| Site | distinct_Active Device |
|---|---|
| West | 2 |
| East | 1 |
How to use the result
For Site West, the sample reports distinct_Active Device of 2.
Synthetic test audio. Screenshots from the recorded workflow in n0is.