02Chapter 2: Applied Steps and the M code behind themEvery change you make in the Power Query Editor is recorded as a step. Each step is a line of code in a language called M. This chapter explains how the Applied Steps pane maps to M, how to read the code, and how to make small, safe edits.7 min read
03Chapter 3: Profiling data: column quality, distribution, and profileThis chapter assumes you can open Power BI Desktop, connect to a CSV or Excel file, and open the Power Query Editor. You should know what rows, columns, and data types are. You should also have seen the Applied Steps pane. Here you learn to inspect a table before you change it, so that each cleaning7 min read
04Chapter 4: Promoting headers and removing junk rowsThis chapter assumes you can connect Power BI Desktop to a CSV or Excel file and open the Power Query Editor. You should also know what the Applied Steps pane is and how to read a formula bar entry. If not, review the earlier chapters on the editor and on Applied Steps.6 min read
05Chapter 5: Setting data types and localeThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and have already promoted headers on a table. It covers how a column's type is set, why locale changes the result, and the errors that come from getting either wrong.5 min read
06Chapter 6: Cleaning text: trim, clean, case, and replaceText columns cause many quiet data problems. "Alice Smith", "alice smith " and "ALICE SMITH" look the same to a person, but Power BI treats them as three different values. This chapter covers the four text transformations that fix most of these problems, and the edge cases where they don't.5 min read
07Chapter 7: Handling nulls: replace, fill down, and remove empty rowsThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and set column data types. It also assumes you have used the column profiling tools from earlier chapters to spot problem columns. Here you will learn what a null is, why it shows up, and how to deal with it using6 min read
08Chapter 8: Removing duplicate rowsThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and have already set data types and trimmed text. Those two steps matter here. Duplicate removal compares values exactly, so unclean text produces wrong results.5 min read
09Chapter 9: Finding, removing, and replacing errorsThis chapter covers cell-level errors in Power Query: where they come from, how to find them, and how to remove or replace them. It assumes you can open the Power Query Editor, read the Applied Steps pane, and set data types (see the earlier chapters on data types and duplicates). It also assumes yo6 min read
10Chapter 10: Splitting and merging columnsThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and set data types. It also assumes you can read a simple M step such as Table.TransformColumnTypes. Splitting and merging change the shape of a table, so you will see how the editor writes them in M and where t5 min read
11Chapter 11: Adding conditional and custom columnsThis chapter assumes you can open the Power Query Editor and read the Applied Steps pane. It also assumes you have already set data types and handled nulls, because new columns that compare or combine values depend on both.5 min read
12Chapter 12: Unpivoting cross-tab dataThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and set column data types. It builds on the data types chapter. Power BI models and visuals work best with tall, narrow tables, and unpivoting is how you turn a wide table into one.5 min read
13Chapter 13: Appending and merging queriesThis chapter assumes you can open the Power Query Editor, read the Applied Steps pane, and set data types. Those topics come from earlier chapters. Here you will combine tables in two ways: stacking rows (append) and adding columns by matching a key (merge).5 min read
14Chapter 14: Organizing queries: references, staging queries, and parametersThis chapter assumes you can connect Power BI Desktop to a CSV or Excel file and that you have used the Applied Steps pane. It also assumes you know how to promote headers, set data types, and clean text. Here you will learn how to keep a growing set of queries readable, avoid repeating work, and ma6 min read
15Chapter 15: Query folding and keeping cleaning fastThis chapter assumes you can connect Power BI Desktop to a source, read the Applied Steps pane, and apply basic cleaning steps such as changing types, removing duplicates, and filtering rows. Here you will learn what query folding is, how to tell whether a step folds, and how to order your cleaning 7 min read
16Chapter 16: Close & Apply and refreshing the cleaned dataThis chapter covers what happens when you leave the Power Query Editor and how the cleaned data stays current. It assumes you have built a query with several applied steps, set column types, and that your source is a file or database that Power BI Desktop can reach.6 min read