Revenue per liter by store
Why ask this?
A retail analyst comparing stores wants to know how much revenue each liter earns, taking the volume sold into account.
Start with the sample data
Open source.csv. In the first row of source.csv, Store = East, Liters = 0.25, Revenue = 2.
What to say
Make a bar chart of average revenue per liter by store. Divide total revenue by total liters, ignoring rows with zero liters.
Processing time
- Recorded audio to chart ready
- 5.36 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 composer

How the canvas produces the result
- CSV Input · Read the sample records
source.csv supplies 3 rows. These records are the inputs to the next step.
- Measure Filter · Keep the requested rows
The filter uses Liters > 0 in keep mode. 3 rows remain including East.
- Aggregate · Sum Revenue, Sum Liters for each Store
If a category appears more than once, its records contribute to one result. The first output row contains Store = East, sum_Revenue = 5, sum_Liters = 1.
- Math · Calculate Average revenue per liter
Apply [sum_Revenue] / [sum_Liters] to each input row. Set Decimal places to 2 to round the result. The first row yields 5.
- Charts · Draw the bar chart
Use Store for the categories and Average revenue per liter for the plotted values.

The chart

| Store | Average revenue per liter |
|---|---|
| East | 5 |
| West | 4.5 |
How to use the result
For Store East, the sample reports Average revenue per liter of 5.
Synthetic test audio. Screenshots from the recorded workflow in n0is.