Which site is closest to its bandwidth allowance?

Why ask this?

A network operator needs the site nearest its allowance before assigning more traffic. A site that has used its full allowance has zero bandwidth left.

Start with the sample data

Open source.csv. In the first row of source.csv, Site = P, Bandwidth = 12, Allowance = 10.

What to say

Which site is closest to its bandwidth allowance without going over? Show its remaining bandwidth.

Recorded with the Karen synthetic voice.

Processing time

Recorded audio to table ready
3.64 s
Transcript to table ready
0.46 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 3 rows. These records are the inputs to the next step.

  2. Math · Calculate Remaining bandwidth

    Apply [Allowance] - ([Bandwidth]) to each input row. Set Difference validation to Quantity. Choose Site as the unique row identifier and select Allowance and Bandwidth as the two numeric fields. Enter bandwidth 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 bandwidth >= 0 in keep mode. 2 rows remain including S.

  4. Sort · Order the results

    Sort by Remaining bandwidth (numeric ascending). The first rows in order are S → T.

  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 Site = S, Remaining bandwidth = 0.

Native n0is canvas for Which site is closest to its bandwidth allowance?

The result table

Workflow result in n0is
SiteRemaining bandwidth
S0

How to use the result

For Site S, the sample reports Remaining bandwidth of 0.

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