Power Query practice: Custom M Functions & Reusable Logic

Chapter 18 · 5 questions · included in full access

  1. Question 1 · hard

    Your own function

    In the Advanced Editor, define WithGST = (amount) => amount * 1.18, as a step, then add a custom column Gross = WithGST([Qty] * [UnitPrice]).

    Solve it in your browser
  2. Question 2 · easy

    Custom function rocket arrow syntax

    In the M formula language, what does the => operator indicate?

    Solve it in your browser
  3. Question 3 · medium

    Reusable GST tax calculation

    In raw M: define Tax = (p as number) as number => p * 0.18, then add column TaxAmount using Table.AddColumn.

    Solve it in your browser
  4. Question 4 · hard

    Multi-argument custom function

    Define Net = (qty as number, price as number) as number => qty * price * 0.9, and add column NetTotal using Table.AddColumn.

    Solve it in your browser
  5. Question 5 · medium

    List transformation iterators

    What is the primary benefit of using List.Transform in Power Query M?

    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