TECHNOLOGIESTieInn Technologies

Power Query transformations

Power BI · 15 questions

Short notes

Key idea

Power Query is the cleaning step before the model. Each click records a step in M code, and every refresh replays all the steps on the new data.

Syntax

  • Column tools: change type, rename, split by delimiter, replace values, trim, fill down.
  • Row tools: remove top rows, filter, remove duplicates, keep errors.
  • Table tools: use first row as headers, unpivot columns, group by, merge queries (join), append queries (stack).
  • Add Column → Conditional Column / Custom Column for new fields.
  • The Applied Steps pane lists every step in order.

Example

A sales sheet has one column per month. Select the ID columns, then Transform → Unpivot Other Columns. You get Month and Value columns: long data, which is what Power BI models and charts expect.

Traps

  • Renaming a source column breaks later steps that refer to the old name.
  • Merge = join, Append = stack. Mixing them up is a common slip.
  • Fix types before merging; a text key won't match a number key.
  • Steps run in order. Inserting a step in the middle can change what later steps see.
  • Don't do heavy maths in M that a DAX measure should handle at report time.

Want the full lesson with step-by-step examples, a project and a certificate? Power BI course, ₹120 →

Questions

5 free questions
5 questions

    Power Query transformations

  1. Question 1easy

    You need each order line to show its product name from the Products query. Which step?

  2. Power Query transformations

  3. Question 2medium

    City names have extra spaces and mixed case. Where should you fix this?

  4. Power Query transformations

  5. Question 3hard

    What does query folding mean?

  6. Power Query transformations

  7. Question 4medium

    You want one row per customer with their total order amount, before loading. Which step?

  8. Power Query transformations

  9. Question 5easy

    What happens to the steps in Applied Steps when you click Refresh next week?

10 more questions on this topic, with hints, and tests

Sign up free for 21 days of every question and test.