Compare loans to available copies

Why ask this?

Compare total loans with total available copies for each library, even when individual records cover different amounts. Sum each field within its group, then divide the totals and multiply by 100. A group with a zero denominator has no percentage.

Start with the sample data

Open source.csv. In the first row of source.csv, Library = East, Loans = 2, Owned Copies = 4, Available Copies = 2.

What to say

For each library, chart total loans as a percentage of total copies.

Recorded with the Moira synthetic voice.

Processing time

Recorded audio to chart ready
3.91 s
Transcript to chart ready
0.70 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 composerRecorded transcript entered in the native composer

When n0is asks

Which quantity column should I divide by?

Available Copies.

How the canvas produces the result

  1. CSV Input · Read the sample records

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

  2. Aggregate · Sum Loans, Sum Available Copies for each Library

    If a category appears more than once, its records contribute to one result. The first output row contains Library = East, sum_Loans = 3, sum_Available Copies = 6.

  3. Measure Filter · Keep the requested rows

    The filter uses sum_Available Copies != 0 in keep mode. 2 rows remain including East.

  4. Math · Calculate Loans as % of Available Copies

    Apply 100 * [sum_Loans] / [sum_Available Copies] to each input row. Set Decimal places to 2 to round the result. The first row yields 50.

  5. Charts · Draw the bar chart

    Use Library for the categories and Loans as % of Available Copies 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 Compare loans to available copies

The chart

Workflow result in n0is
LibraryLoans as % of Available Copies
East50
West50

How to use the result

For Library East, the sample reports Loans as % of Available Copies of 50.

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