Find invoices past their due date

Why ask this?

Before making collection calls, a billing lead needs to separate invoices that still need follow-up from invoices that were eventually settled.

Start with the sample data

Open source.csv. In the first row of source.csv, Invoice = A, Due day = 37, Paid = yes.

What to say

Find invoices more than six days after their due date. Use day forty five as today.

Recorded with the Karen synthetic voice.

Processing time

Recorded audio to table ready
4.36 s
Transcript to table ready
0.73 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
What n0is transcribed

Find invoices more than six days after their due date. Use day 45 as today.

When n0is asks

Did you mean paid or unpaid invoices?

Unpaid invoices.

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. Normalize · Trim surrounding spaces in Paid

    Select Paid and enable Trim ends. Leave Remove all spaces, Letters and digits only, and Remove $ and , unchecked. This preserves characters inside the value.

  3. Find / Replace · Replace matching values in Paid

    Set the search pattern to ^(?:paid|true|yes|1)$ and the replacement to 1. Enable regular expressions. The first output row contains Invoice = A, Due day = 37, Paid = 1.

  4. Find / Replace · Replace matching values in Paid

    Set the search pattern to ^(?:unpaid|false|no|0)$ and the replacement to 0. Enable regular expressions. The first output row contains Invoice = A, Due day = 37, Paid = 1.

  5. Find / Replace · Replace matching values in Paid

    Set the search pattern to ^(?![01]$).*$ and the replacement to invalid. Enable regular expressions. The first output row contains Invoice = A, Due day = 37, Paid = 1.

  6. Data quality report · Validate every row before continuing

    In Data quality report, choose Nonnegative amounts under Validation rule. Select Paid as the field and Stop on invalid rows as the output. Valid data passes through with its original columns and values. A failing row stops downstream results until you correct it.

  7. String Concat · Make a working copy of the invoice ID

    In String Concat, select Invoice. Set Output column to Invoice key and enable Keep the original columns. The next two steps check this copy so the result can display the original ID.

  8. Normalize · Trim surrounding spaces in Invoice key

    Select Invoice key and enable Trim ends. Leave Remove all spaces, Letters and digits only, and Remove $ and , unchecked. This preserves characters inside the value.

  9. Math · Check that each invoice appears once

    Leave Expression empty. Under Whole-count validation choose Unique identifier, select Invoice key as the identifier and Paid as the whole-count field. A blank or repeated ID stops the workflow.

  10. Column Renamer · Prepare the output columns

    Remove Invoice key. The result exposes Invoice, Due day, Paid.

  11. Measure Filter · Keep the requested rows

    The filter uses Paid == 0 in keep mode. 2 rows remain including B.

  12. Normalize · Trim surrounding spaces in Due day

    Select Due day and enable Trim ends. Leave Remove all spaces, Letters and digits only, and Remove $ and , unchecked. This preserves characters inside the value.

  13. Find / Replace · Replace matching values in Due day

    Set the search pattern to ^-0+$ and the replacement to 0. Enable regular expressions. The first output row contains Invoice = B, Due day = 30, Paid = 0.

  14. Find / Replace · Replace matching values in Due day

    Set the search pattern to [^0-9]|^0*[1-9][0-9]{16}|^0*(?=[1-9][0-9]{15}$)9(?:[1-9]|0(?:[1-9]|0(?:[8-9]|7(?:[2-9]|199(?:[3-9]|2(?:[6-9]|5(?:[5-9]|4(?:[8-9]|7(?:[5-9]|4(?:[1-9]|099[2-9])))))))))) and the replacement to invalid. Enable regular expressions. The first output row contains Invoice = B, Due day = 30, Paid = 0.

  15. Data quality report · Validate every row before continuing

    In Data quality report, choose Nonnegative amounts under Validation rule. Select Due day as the field and Stop on invalid rows as the output. Valid data passes through with its original columns and values. A failing row stops downstream results until you correct it.

  16. Math · Calculate Days overdue

    Apply 45 - [Due day] + 0 * [Paid] to each input row. Under Decimal places, choose Keep calculated precision so the next step receives the full calculated value. The first row yields 15.

  17. Measure Filter · Keep the requested rows

    The filter uses Days overdue > 6 in keep mode. 2 rows remain including B.

In Math, set Whole-count validation to Unique identifier, choose Invoice key as the identifier, and tick Paid under Nonnegative whole counts.

Native n0is canvas for Find invoices past their due date

The result table

Workflow result in n0is
InvoiceDays overdue
B15
D23

How to use the result

For Invoice B, the sample reports Days overdue of 15.

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