Finish rate by track, excluding zero-denominator rows

Why ask this?

Compare finish rate by track when an observation with a zero denominator should contribute nothing to either total. 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, Track = East, Finished = 1, Started = 0.

What to say

Chart the finish rate by track using total finished divided by total started. Skip rows with zero started before adding the totals.

Recorded with the Karen synthetic voice.

Processing time

Recorded audio to chart ready
5.29 s
Transcript to chart ready
0.53 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 composerRecorded transcript entered in the native composer
What n0is transcribed

Chart the finish rate by track using total finish divided by total started. Skip rows with zero started before adding the totals.

How the canvas produces the result

  1. CSV Input · Read the sample records

    source.csv supplies 4 rows. These records are the inputs to the next step.

  2. Measure Filter · Keep the requested rows

    The filter uses Started == 0 in remove mode. 2 rows remain including West.

  3. Aggregate · Sum Finished, Sum Started for each Track

    If a category appears more than once, its records contribute to one result. The first output row contains Track = West, sum_Finished = 3, sum_Started = 4.

  4. Measure Filter · Keep the requested rows

    The filter uses sum_Started != 0 in keep mode. 2 rows remain including West.

  5. Math · Calculate Finish rate

    Apply 100 * [sum_Finished] / [sum_Started] to each input row. Set Decimal places to 2 to round the result. The first row yields 75.

  6. Charts · Draw the bar chart

    Use Track for the categories and Finish 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.

Native n0is canvas for Finish rate by track, excluding zero-denominator rows

The chart

Workflow result in n0is
TrackFinish rate
West75
East25

How to use the result

For Track West, the sample reports Finish rate of 75.

Synthetic test audio. Screenshots from the recorded workflow in n0is.