The Complete Excel Course with AI Integration

Power Query for quality engineers

Inspection data reaches a quality engineer in pieces: a CSV for every CMM run, supplier certificates, NCR and receiving exports, and every one needs tidying before a single defect can be counted. The Complete Excel Course with AI Integration turns that work into Power Query steps through the industry-standard SalesFusion project, and the lessons below are the ones this job needs: import, cleaning, flags and checks, merges and appends, whole folders and Unpivot.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Stack a folder of CMM, test-bench or supplier certificate files as one query that picks up each new file at refresh, every row tied to its source file.
  • Clean inspection exports in Power Query: part numbers trimmed and in one case, unit labels and NA entries stripped from readings, and every column given its proper type.
  • Flag each measurement in or out of specification by merging in the part's limits and comparing the reading against them in a new column.
  • Map free-text defect descriptions to standard defect codes with a merge against a mapping table, catching any description the table does not yet hold.
  • Unpivot a measurement report with a column per characteristic into one row per measurement, the tall shape PivotTables and statistics tools read.
  • Prove each refresh complete by grouping each month and line, with row counts and totals to set against the source system.
  • Work out PPM by supplier from receiving and inspection data with merges, Group By and a custom column that handles a supplier with no deliveries.

Projects

What you will build.

The course has 14 industry-standard projects. These two matter most here.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    Built on deliberately messy sales exports, its Power Query half drills exactly what inspection data needs: a folder of files stacked into one table, codes and readings cleaned, lookup tables merged in, a wide report reshaped and a row count that proves nothing went missing.

  • Project 05

    SalesPlusPerformance

    A sales question answered in seconds, straight from the order data.

    A sales report in the course, its PivotTables show where a clean query's output goes next: rejects by supplier and month, order dates rolled up into months by Excel itself, a slicer per supplier, and a refresh when the data changes.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 17 of them, 1 h 36 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 153 SalesFusion Power Query project

Begin at Lesson 153 once your logs live in Excel tables and a PivotTable holds no fears: the project opens on its finished report and a folder of raw CSV files, and each lesson adds the next step a weekly consolidation needs. Tables or PivotTables still new? Lesson 19 and Lesson 57 come first, and Lesson 1 for anyone opening Excel for the first time. Know your way round Applied Steps already? Jump to Lesson 163 for joining part masters and stacking files.

17 of 186 lessons · 1 h 36 min

15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 13 min The pipeline idea and the first import: SalesFusion's finished report as the target, ETL explained as extract, transform and load, and a messy CSV opened in the Power Query Editor through Transform Data rather than dropped straight onto a sheet. A CMM or test-bench export is opened the same way.
  1. 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
  2. 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
  3. 155 Import a CSV with Power Query Get data from text and transform data 2 min
15 SalesFusion: advanced data tools and a Power Query modelling system 4 of 21 lessons · 24 min Making an export fit to count: unwanted columns dropped and headers renamed without spaces, codes trimmed and set in capitals, stray symbols and NA entries replaced, numbers and dates set to their proper types, and Year, MonthName, MonthNumber, MonthStart and YearMonth columns added. On inspection data that means part numbers that match, readings that add up and months that sort in calendar order.
  1. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  2. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  3. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  4. 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 16 min Labels, checks and loading choices: custom columns that calculate, a conditional column that labels each row, a reference query grouping every month and region with its total and its row count, and Close and Load set to connection only, so the workbook carries just the finished table. Here the label becomes in or out of specification, and the row count proves no inspection went missing.
  1. 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
  2. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  3. 162 Close and Load in Power Query Connection only, table or Data Model 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 14 min Joining and stacking: product and region names brought onto every sale by a Left Outer merge, a whole cleaning routine duplicated for a second year's file by changing its source, and both years appended into one query. For a quality engineer: part masters and supplier lists merged onto inspection rows, a second line's or supplier's file cleaned by the same steps, and last year's history stacked under this year's.
  1. 163 Merge queries in Power Query Look up product and region names with a left join 5 min
  2. 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
  3. 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 22 min Folders and the final table: a whole folder of files stacked and cleaned by one set of steps, column profiling switched to the whole data set, profit and fiscal year columns added, and one master table built from merges and appends, checked for nulls. A folder of CMM runs or supplier certificates becomes a single table, and the next file saved there joins it at refresh.
  1. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  2. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  3. 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 8 min Wide reports made long: Unpivot Other Columns on an export that spreads its months across the columns, the headers turned into one field and the values into another, and new columns that cannot break the query. A measurement report that gives every characteristic its own column reshapes the same way.
  1. 173 Unpivot columns in Power Query Turn wide month columns into a long table 8 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

What does a quality engineer gain by moving inspection data clean-up from formulas and copy-paste into Power Query?

The hours now spent copying, trimming and stacking exports, handed back for root-cause work, and The Complete Excel Course with AI Integration from Coding Liquids shows exactly how through the SalesFusion project, which like every project in the course is industry standard and was designed after talking with people from many different industries. A folder of CMM or test files becomes one table at a refresh (Lesson 166); part numbers, readings and dates are cleaned by steps that rerun on every export (Lesson 157 to Lesson 159); limits and supplier names arrive through merges (Lesson 163); and a Group By query proves no record went missing (Lesson 161). What used to be Monday morning's chore becomes a single refresh. The 17 lessons on this page take 1 hour 36 minutes, and every step is practised on the course's own messy files with a finished workbook beside them.

Our CMM writes a new CSV for every inspection run: can Power Query gather the whole folder into a single table?

Yes, and new runs join at the next refresh. Lesson 166 of The Complete Excel Course with AI Integration points Get Data at a folder, uses Combine and Transform Data, and stacks every file into one query, with a Source.Name column recording the file behind each row. For measurement data that column is traceability you would otherwise lose: any reading in the combined table can be traced to the run that produced it. The cleaning lives in Transform Sample File, so the header renames, trims, replacements and data types set there run on each file the folder holds, now and later. Lesson 167 adds the calculated columns on top, and Lesson 168 builds the final table and checks it for nulls. The files must share one layout, which output from a single CMM program normally does; a run saved with a different layout is the one to inspect first.

Can Power Query mark every measurement in or out of specification as the data loads?

Yes, by bringing each part's limits in with a merge and comparing the reading against them in a new column, two techniques The Complete Excel Course with AI Integration teaches in SalesFusion. In Lesson 163, product and region lookups are merged onto the sales query, Left Outer, so every sale keeps its row; merge your inspection query with a table of part numbers and their lower and upper limits the same way, and every reading has its limits beside it. Lesson 160 then writes custom and conditional columns, including a Margin column with an if test that returns null when its divisor is empty or zero; an if test of the reading against both limits labels each row in or out. For a separate exception list, Lesson 161 shows a Reference query, wired to its source so later changes flow through, and a filter on the label turns it into the out-of-spec rows alone, refreshed with everything else.

Operators describe the same defect a dozen different ways: can a query map their words to our defect codes?

Yes, with a mapping table and a merge, and The Complete Excel Course with AI Integration covers each part. Power Query treats capitals as different values, so the first step sets one case and trims the text, as Lesson 157 does to region codes and product IDs, with Replace Values for the variants you already know. Then build a small table pairing each description operators actually use with its standard code, and merge it onto the log the way Lesson 163 merges product details onto sales, Left Outer so no row is dropped. A description the table has never seen comes back with an empty code, and the routine from Lesson 168 catches it: look for nulls after every merge. Add the new wording to the mapping table, refresh, and the code fills in. Over a few months the table becomes your plant's defect vocabulary, kept in one place.

Our measurement reports put each characteristic in its own column: can Power Query reshape them for analysis?

Yes: Unpivot turns a report's columns into rows, and Lesson 173 of The Complete Excel Course with AI Integration does it on a wide export. The lesson's file holds a column for every month; selecting the descriptive columns and choosing Unpivot Other Columns swings all the others into two fields, one holding the old header and one the value, which the lesson renames. A measurement report with a column per characteristic reshapes the same way into part, characteristic and reading, one measurement per row: the tall shape that PivotTables, COUNTIFS and most statistics tools expect. Because the step names no column it turns into rows, a characteristic added to the report next month leaves the query untouched. The lesson finishes by clearing the n/a entries out of the new value field and grouping the result, steps your readings will want as well.

Readings come with units typed after them, NA where a value is missing and dates Excel will not recognise: can Power Query fix all three?

Yes, and the fixes stay in the query for every export after. Lesson 157 of The Complete Excel Course with AI Integration uses Replace Values with an empty replacement to strip symbols, commas, NA entries and hyphens out of the money columns; the same step strips a unit label off a reading. Lesson 158 then sets each column's type, numbers as decimal or whole number and text as text, and shows why it matters: a column left as text looks fine but cannot be summed or averaged, so a report quietly calculates wrong. Lesson 159 handles dates, clearing placeholders and an impossible date first, then converting the column and replacing any leftover errors with null. Each fix is a recorded step, so next week's export arrives, refreshes and comes out clean without anyone retyping a reading or hunting for the cell that broke the average.

An auditor asks how the monthly defect figures were produced and whether any records were lost: what can I show?

The whole recipe and a completeness check, both built into a Power Query workbook from The Complete Excel Course with AI Integration. Applied Steps records every action on the data in order, from the import to the last type change, and Lesson 156 shows steps being renamed so the list reads as a procedure; selecting a step shows the data at that stage, and the source file itself is only read, never edited. For completeness, Lesson 161 builds a reference query that groups each month and region, with a total and a count of rows, sorted so an outlier stands out; group by month and line instead, and the counts can be set against the inspection system's own figures. Unreadable dates show up there as a null month, a fault caught before the report goes out. For a quality system under audit, a documented and repeatable method is the whole point.

Can Power Query work out PPM for each supplier from receiving data and inspection results?

Yes, by joining, grouping and then dividing, three steps The Complete Excel Course with AI Integration teaches in SalesFusion. Merge the inspection results onto the goods-received query by lot or delivery number, Left Outer as in Lesson 163, so every receipt keeps its row whether or not it was inspected. Group By, from Lesson 161, then totals received and rejected quantities for each supplier, and by month too if you add a second grouping, as the lesson adds region to month. A custom column (Lesson 160) divides rejected by received and multiplies by a million, with an if test returning null when nothing was received, the same guard the lesson's Margin column uses against a zero. Load the result as a table, or into the data model, and the scorecard refreshes with each new export. SUMIFS can reach the same figure on a sheet; the query keeps the whole calculation in one refreshable place.

A second supplier now sends certificate data in the same layout: do I have to build the query again?

Duplicate the query and point the copy at the new file: Lesson 164 of The Complete Excel Course with AI Integration brings a second year of sales into the pipeline exactly that way. Only the Source step changes, through the gear icon beside it, and every cleaning step replays on the new data. The lesson adds a caution worth keeping: audit the new file anyway, because it brought nulls of its own that the first file did not have. Lesson 165 then joins the two queries into one with Append Queries as New, which leaves both sources untouched so a fault can be traced back to its source query, and depends on the column headers matching. For a quality engineer, that is two suppliers' certificates, or two lines' logs, in one table with one set of cleaning steps. If the files will keep coming, the folder query of Lesson 166 takes over and the stacking happens by itself.

Can Power Query tell me how complete and clean a measurement export is before I rely on it?

Yes: column profiling shows it at a glance, and Lesson 166 of The Complete Excel Course with AI Integration switches it on. On the View tab, Column quality shows the share of each column that is valid, in error or empty, Column distribution shows how many distinct and unique values it holds, and Column profile gives the detail for the selected column. The lesson also switches profiling from the first thousand rows to the entire data set, which matters for inspection data, where the bad readings are rarely at the top. A part number column with more distinct values than you have parts points to typing variants; a reading column with errors points to text that will not convert. Lesson 158 shows the other quick check, spotting stray words in a column's filter list, as the lesson does with quantities written as words, before setting the type.

Our query over a year of inspection files has become slow: what does the course do about that?

Three habits from The Complete Excel Course with AI Integration keep a query quick, and they are worth adopting from the first file. Lesson 156 removes unwanted columns as the very first step, so every later step has less data to carry. Lesson 162 sets the golden rule for loading: send only the final clean table to a sheet and keep every staging query as a connection, because a workbook that loads each step grows slow and bloated. Lesson 159 keeps dates as Date rather than Date/Time, which drops the unneeded time and saves memory. On measurement files, that means dropping the columns your report never uses, such as operator notes or machine settings, before any cleaning starts. Lesson 168 makes the same point at the end: unneeded columns bite back as a model grows, so choose deliberately which ones to keep, the file name column among them.

How hard is Power Query for an engineer who has only ever cleaned data with formulas?

Easier than most expect, because nearly every step is a menu choice that Power Query records for you, and The Complete Excel Course with AI Integration takes it one short lesson at a time. Importing a file is Get Data and Transform Data (Lesson 155); trimming, changing case and replacing values sit on the Transform tab (Lesson 157); merges and appends are dialog boxes. Typing arrives only with custom columns, such as the rate column written in M in Lesson 158 or the profit and margin columns of Lesson 160, and they read much like Excel formulas. When a step goes wrong, Lesson 167 offers the most useful tip in the section: most Power Query errors vanish once the step that caused them is deleted. An engineer's habits help too: a query is a documented procedure, run the same way every time, which is how quality work likes its methods.

How soon could the weekly inspection consolidation run itself at the press of Refresh?

Roughly 1 hour 36 minutes of study, with your own consolidation running long before you reach the final lesson. Practise as you go: import and clean one CMM export the way Lesson 155 to Lesson 159 of The Complete Excel Course with AI Integration clean theirs, and those steps replay on next week's file. Add the in-or-out label and the row-count check from Lesson 160 and Lesson 161, then the part master merge of Lesson 163. From Lesson 166 on, a folder query collects every run saved since the last refresh, so Monday's consolidation becomes one press of Refresh All and a glance at the counts. Each lesson comes with the course's messy practice files and a complete workbook to check against. Only the Power Pivot lessons that follow, Lesson 169 and Lesson 170, need Windows; every lesson listed on this page works in Excel for Windows or Mac.

Excel with AI

See the whole course.

The Complete Excel Course with AI Integration: 16 hours of video in 186 lessons, built around 14 industry-standard projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.