Approval rate by office, excluding zero-denominator rows
Why ask this?
Compare approval rate by office when an observation with a zero denominator should contribute nothing to either total. Choose which approval column supplies the numerator. Filter the source rows first, sum the remaining values by group, then divide. Any group whose denominator still totals zero has no defined rate.
Start with the sample data
Open source.csv. In the first row of source.csv, Office = East, First Approved = 2, Final Approved = 1, Reviewed = 0.
What to say
Chart the approval rate by office using total approved divided by total reviewed. Skip rows with zero reviewed before adding the totals.
Recorded with the Daniel synthetic voice.
Processing time
- Recorded audio to chart ready
- 6.43 s
- Transcript to chart ready
- 1.00 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 amount column should I use?
- First Approved
- Final Approved
Final Approved.
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.
- Measure Filter · Keep the requested rows
The filter uses Reviewed == 0 in remove mode. 2 rows remain including West.
- Aggregate · Sum Final Approved, Sum Reviewed for each Office
If a category appears more than once, its records contribute to one result. The first output row contains Office = West, sum_Final Approved = 3, sum_Reviewed = 4.
- Measure Filter · Keep the requested rows
The filter uses sum_Reviewed != 0 in keep mode. 2 rows remain including West.
- Math · Calculate Approval rate
Apply 100 * [sum_Final Approved] / [sum_Reviewed] to each input row. Set Decimal places to 2 to round the result. The first row yields 75.
- Charts · Draw the bar chart
Use Office for the categories and Approval rate for the plotted values. In Display Options, enable Signed value axis to keep both sides of zero visible.
To reproduce the bar scale, select the chart on the canvas. In its settings, enable Signed value axis. Negative and positive values use opposite sides of zero.

The chart

| Office | Approval rate |
|---|---|
| West | 75 |
| East | 25 |
How to use the result
For Office West, the sample reports Approval rate of 75.
Synthetic test audio. Screenshots from the recorded workflow in n0is.