Power Query practice: Error Handling & Defensive ETL

Chapter 19 · 5 questions · included in full access

  1. Question 1 · hard

    Safe conversion with try

    SalesRaw's Qty is text and one value is a typo (3S). Add QtyNum = the number, or 0 when it can't be converted: try Number.From([Qty]) otherwise 0.

    Solve it in your browser
  2. Question 2 · medium

    Remove rows with errors

    Changing Qty to Whole Number turned the typo 3S into an Error. Remove that row: select Qty ▸ Home ▸ Remove Rows ▸ Remove Errors.

    Solve it in your browser
  3. Question 3 · medium

    Replace errors with zero

    Keep the row this time: Transform ▸ Replace Errors in Qty with 0.

    Solve it in your browser
  4. Question 4 · medium

    Query folding

    Your source is a SQL Server database. Why filter rows and remove columns early in the recipe?

    Solve it in your browser
  5. Question 5 · medium

    When to use Table.Buffer

    Why would a data engineer wrap a dimension table in Table.Buffer before performing complex nested joins?

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing