Hourly pay by department

Why ask this?

For a staffing review, payroll needs the effective hourly pay for each department. Total pay and hours worked supply the weights.

Start with the sample data

Open source.csv. In the first row of source.csv, Hours = 0.25, Department = North, Pay = 10.

What to say

Show average hourly pay by department as a bar chart. Divide total pay by total hours and skip rows with zero hours.

Processing time

Recorded audio to chart ready
4.82 s
Transcript to chart ready
0.45 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

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 Hours > 0 in keep mode. 3 rows remain including 0.25.

  3. Aggregate · Sum Pay, Sum Hours for each Department

    If a category appears more than once, its records contribute to one result. The first output row contains Department = North, sum_Pay = 28, sum_Hours = 2.

  4. Math · Calculate Average pay per hour

    Apply [sum_Pay] / [sum_Hours] to each input row. Set Decimal places to 2 to round the result. The first row yields 14.

  5. Charts · Draw the bar chart

    Use Department for the categories and Average pay per hour for the plotted values.

Native n0is canvas for Hourly pay by department

The chart

Workflow result in n0is
DepartmentAverage pay per hour
North14
South1.01

How to use the result

For Department North, the sample reports Average pay per hour of 14.

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