Which lab has the least energy left in its allocation?

Why ask this?

Two labs can have the same amount of energy left even when their allocations differ. Choose which ordering should settle that tie on this report and on future inputs.

Start with the sample data

Open source.csv. In the first row of source.csv, Lab = West, Energy = 8, Allocation = 10.

What to say

Which lab is closest to its energy allocation without going over? Show its remaining energy.

Recorded with the Moira synthetic voice.

Processing time

Recorded audio to table ready
4.72 s
Transcript to table ready
0.53 ms

One local replay from recorded audio through transcription and native table 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

West and East tie for the least remaining. How should I break ties?

Alphabetically first.

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. Math · Calculate Remaining energy

    Apply [Allocation] - ([Energy]) to each input row. Set Difference validation to Quantity. Choose Lab as the unique row identifier and select Allocation and Energy as the two numeric fields. Enter energy 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 2.

  3. Measure Filter · Keep the requested rows

    The filter uses Remaining energy >= 0 in keep mode. 3 rows remain including West.

  4. Sort · Order the results

    Sort by Remaining energy (numeric ascending), then Lab (alphabetical ascending). The first rows in order are East → West → North.

  5. Limit rows · Keep the first row

    Set Rows to 1. Leave off “Take from the end.” Leave “Skip blanks in” empty. The retained result begins with Lab = East, Remaining energy = 2.

Native n0is canvas for Which lab has the least energy left in its allocation?

The result table

Workflow result in n0is
LabRemaining energy
East2

How to use the result

For Lab East, the sample reports Remaining energy of 2.

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