Compare guests with booked rooms

Why ask this?

Compare total guests with total booked rooms for each hotel, 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, Hotel = East, Guests = 2, Booked Rooms = 4, Available Rooms = 2.

What to say

For each hotel, chart total guests as a percentage of total rooms.

Recorded with the Daniel synthetic voice.

Processing time

Recorded audio to chart ready
3.50 s
Transcript to chart ready
0.56 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?

Option one.

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 Guests, Sum Booked Rooms for each Hotel

    If a category appears more than once, its records contribute to one result. The first output row contains Hotel = East, sum_Guests = 3, sum_Booked Rooms = 12.

  3. Measure Filter · Keep the requested rows

    The filter uses sum_Booked Rooms != 0 in keep mode. 2 rows remain including East.

  4. Math · Calculate Guests as % of Booked Rooms

    Apply 100 * [sum_Guests] / [sum_Booked Rooms] to each input row. Set Decimal places to 2 to round the result. The first row yields 25.

  5. Charts · Draw the bar chart

    Use Hotel for the categories and Guests as % of Booked Rooms 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 guests with booked rooms

The chart

Workflow result in n0is
HotelGuests as % of Booked Rooms
East25
West30

How to use the result

For Hotel East, the sample reports Guests as % of Booked Rooms of 25.

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