Which hall is closest to its seat limit?

Why ask this?

An event coordinator wants the hall closest to filling up while it is still within its seat limit. If every hall is already over capacity, the exception table is empty.

Start with the sample data

Open source.csv. In the first row of source.csv, Hall = A, Seats = 15, Limit = 10.

What to say

Which hall is closest to its seats limit without going over? Show its remaining seats.

Recorded with the Samantha synthetic voice.

Processing time

Recorded audio to table ready
3.35 s
Transcript to table ready
0.48 ms

One local replay from recorded audio through transcription and native table 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 2 rows. These records are the inputs to the next step.

  2. Math · Calculate Remaining seats

    Apply [Limit] - ([Seats]) to each input row. Set Difference validation to Quantity. Choose Hall as the unique row identifier and select Limit and Seats as the two numeric fields. Enter seats under Chart unit. Set Decimal places to 6 to round the result. Enter the result column name shown above and turn off “Keep the columns it reads.” Quantity validation checks numeric operands and a unique row identifier when the saved canvas runs. The first row yields -5.

  3. Measure Filter · Keep the requested rows

    The filter uses Remaining seats >= 0 in keep mode. 0 rows remain.

  4. Sort · Order the results

    Sort by Remaining seats (numeric ascending).

  5. Limit rows · Keep the first row

    Set Rows to 1. Leave off “Take from the end.” Leave “Skip blanks in” empty.

Native n0is canvas for Which hall is closest to its seat limit?

The result table

Workflow result in n0is
HallRemaining seats

How to use the result

No rows met the request on this sample. Check the filter and source records on the canvas before following up on an exception.

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