The Complete Excel Course with AI Integration
Power Query for industrial engineers
Before any line review, an industrial engineer's data needs the same repairs: MES exports with numbers held as text, codes typed several ways, a new shift file and study sheets laid across columns. The Complete Excel Course with AI Integration moves those repairs into Power Query inside SalesFusion, its industry-standard data project. Gathered here: import and clean, rules in conditional columns, Group By totals, merges and appends, the folder query and Unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring an MES or ERP export into Power Query from its CSV file and record every repair once, so the next export is cleaned by a refresh.
- Trim codes and set them in one case, strip symbols and stray characters, turn NA entries into true blanks and set the right data type on each column, so quantities and times total correctly.
- Combine a folder of daily or shift exports into one log that grows when the next file is saved, with a column naming the source of each row.
- Merge machine, part or routing details into a log with a join that keeps every row, then check the merged table for the blanks a missing code leaves.
- Total downtime and count stoppages by month and cause with Group By, largest first, before anything reaches a sheet.
- Classify every stoppage or reading with custom and conditional columns, so every report built on the query applies the same rule.
- Reuse a finished query on another line's export of the same layout, and append two years of logs into one table for a before-and-after.
- Unpivot a time study sheet with a column per cycle into rows of cycle and reading, ready for averages, PivotTables and charts.
Projects
What you will build.
The course has 14 industry-standard projects. These three matter most here.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built on deliberately messy sales exports, it rehearses an engineer's weekly data chores: symbols and words in number columns, codes in several forms, lookup files to merge, a folder of exports to stack and a wide sheet to unpivot, every repair a recorded step that runs again at each refresh.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it is the next stop for a cleaned downtime log: a PivotTable by line, cause and month and slicers that pick out a shift, while Refresh All, taught in Lesson 65, reruns the queries and the PivotTables together.
-
Project 04
Marketing Engagement Dashboard
Nine charts, each picked for the question it answers.
Built to teach every chart type and its use, it gives a cleaned downtime log its Pareto chart of causes, and it shows the spread of study readings as a histogram and a box and whisker plot once Unpivot has put them in rows.
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 if your shift data already sits in Excel tables and a PivotTable is familiar ground: SalesFusion opens with its goal and its messy CSV files, and each lesson after it adds one stage to the pipeline. If tables and PivotTables are still unfamiliar, Lesson 19 and the run of PivotTable lessons from Lesson 57 come first, and a person who has never opened Excel starts the course at Lesson 1. Importing exports through Get Data already? Skip ahead to Lesson 160, where conditional columns, Group By, the merges and the folder query start.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system SalesFusion's plan and first import: Power Query as the engine that replays recorded steps on each fresh file, the extract, transform and load idea, the file formats Get Data offers, and a CSV export opened with Transform Data chosen over Load. The lessons open sales exports; a machine log or an ERP download opens the same way.
- 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
- 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
- 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 The repairs every export needs: temporary columns removed and headers renamed without spaces, codes trimmed and set in one case, symbols, commas and NA cleared with Replace Values, quantities written as words corrected, true number and date types set, and Year, MonthName, MonthNumber, MonthStart and YearMonth columns added so a shift log reports by period.
- 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
- 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
- 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
- 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 Where a plant's own rules live: a profit column and a margin that cannot divide by zero, a High or Normal label at a threshold and a returns marker, empty values inspected and duplicate rows removed, then a summary query referenced from the staging query and grouped by region and month, with every working query kept as a connection rather than a sheet.
- 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
- 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
- 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 Joining and stacking: lookup files of products and regions merged onto the sales rows by a Left Outer merge that loses no row, the cleaning query copied and its source switched to a second year's export, its merges rebuilt on a fresh query, then both years stacked as one appended query whose columns line up by header.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
- 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
- 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 The folder that feeds itself: every export in a folder combined into one query with a column naming each row's file, profiling switched to the whole data set, one set of steps applied through the sample file, date and calculated columns added, and a master table built from history and folder data, checked for blanks.
- 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
- 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
- 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 Unpivot for sheets that run across the page: a budget export holding one column for each month becomes rows of label and value through Unpivot Other Columns, which keeps working as new columns appear, then gains real dates and monthly totals. A time study with a column per cycle takes the same treatment.
- 173 Unpivot columns in Power Query Turn wide month columns into a long table 8 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
Does Power Query belong in an industrial engineer's toolkit next to the MES and the stopwatch, and which course teaches it?
Yes: Power Query is the tool that gets plant data fit for analysis, and The Complete Excel Course with AI Integration from Coding Liquids builds it into SalesFusion, a project that, like every project in the course, meets an industry standard and came out of talks with people from many different industries. Its raw files behave like the exports an engineer receives: CSVs with symbols and words where numbers belong, dates Excel cannot read, lookup files to join, a folder of exports to combine and a sheet laid out across columns. Power Query records each repair as a step and replays them all on the next export, so the patching that precedes every line review shrinks to a press of Refresh. The 17 lessons gathered here, 1 hour 36 minutes in all, run in the order the problems arrive: import and clean, rules and totals, joins and appends, the self-feeding folder, then Unpivot. Each query is built by your own hand on the course's practice files, and a completed workbook is there to check against.
Is Power Query worth learning when the MES team could fix the export at the source?
Yes, because the export you receive this week is the one you must report on, and The Complete Excel Course with AI Integration teaches you to repair it on arrival. Fixing data at the source is the ideal and a request to the MES team is worth making, but it rarely lands before the next review. Power Query keeps each repair as a step in Applied Steps (Lesson 156) and replays them on every new file: codes trimmed and set in one case (Lesson 157), numbers held as text and quantities written as words turned into true numbers (Lesson 158), placeholders cleared out of dates (Lesson 159). The raw file itself is never edited. If the source is corrected later, the repair steps simply have less to do. Lesson 154 puts the case in the lesson's own terms: rubbish in, rubbish out, and decisions need data that is accurate, consistent and auditable.
A new CSV lands in the shared folder after every shift: can Power Query add it to the log by itself?
Yes: a folder query takes in every file saved there, the ones already present and each new one at the next refresh, and The Complete Excel Course with AI Integration sets it up in Lesson 166. Get Data From Folder with Combine and Transform stacks the files as one table while a Source.Name column records the file behind every row, so each reading keeps its shift or day. The clean-up is written once in the Transform Sample File, with the renames, trimming, case and data types of the earlier lessons, and is carried out on each file the folder holds. The lesson also switches column profiling to the entire data set, so column quality and distribution describe every row rather than the first thousand. Lesson 167 adds date and calculated columns on top, and Lesson 168 joins the folder data to the history in one master table, checked for blanks. One condition: every shift file must share the same columns, as files from a single system do.
Our time study sheet puts each cycle's reading in its own column: can Power Query turn it into rows?
Yes: Unpivot Other Columns does exactly that, and The Complete Excel Course with AI Integration teaches it in Lesson 173. The lesson's file is a wide export holding one column for each month; you select the columns that describe each row, for a study the element and the operator, and every other column turns into rows of label and value, so Cycle 1 to Cycle 20 become one column of cycle labels and one of readings. The lesson renames the pair, clears n/a out of the values and turns the month labels into real dates; in a study the labels simply stay as cycle numbers. Because the command names none of the reading columns, a study with extra cycles runs through the same query untouched. In that long shape AVERAGE, a PivotTable and the box and whisker chart of Lesson 56 all read the readings directly. The lesson opens a CSV; Power Query can also read a table in the open workbook, a general ability no lesson covers.
Which merge keeps every stoppage when the asset list is incomplete, and which would drop rows without a word?
Left Outer keeps every stoppage, and The Complete Excel Course with AI Integration makes it the join of choice for exactly that reason. In Lesson 163 the sales query is merged with product and region lookup files using Left Outer: all the sales rows survive the merge, and lookup columns are filled only where a code finds its partner, so no row is lost. On a downtime export merged with the asset list, a machine missing from the list keeps its stoppage, with blank name and area columns that show the gap. Lesson 164 reads through the other join kinds, Right Outer, Full Outer, Inner and more, before keeping Left Outer; an Inner join would keep only matched rows, so stoppages on unlisted machines would vanish from every total. Lesson 168 then checks the merged table for blanks, the habit that turns each gap into an entry to add to the asset list.
Can Power Query total downtime by cause and month before anything reaches a sheet?
Yes: Group By does it inside the query, and The Complete Excel Course with AI Integration teaches it in Lesson 161. The lesson builds a reference to the cleaned query, so the summary stays wired to its source, then groups by month and region with two results, a sum of sales and a count of rows, sorted with the biggest totals on top. Swap region for cause and the sum of downtime and the count of stoppages arrive side by side for every month and cause, the two numbers a loss review needs: how much time went, and how often. The sorting earns its place too: with the largest figure first, one that looks too good to be true stands out, and the lesson's verdict on such a figure is usually a typo. Rows with no readable month are left out, since they trace back to unreadable dates in the raw file. The result can stay a connection, ready for a PivotTable or a Pareto chart.
Our reports disagree on which stoppages count as major: can Power Query classify every stoppage once, for every report?
Yes: a conditional column sets the rule inside the query, and The Complete Excel Course with AI Integration builds rules of this kind in Lesson 160. There a custom column works out profit, a second divides it by sales with a test that returns nothing when sales are empty or zero, a conditional column labels each sale High or Normal at a threshold, and another marks returns. The lesson's argument is the one that settles a dispute between engineers: logic built in Power Query runs the same way on every refresh, so no two reports built on the query can disagree. Write major as a stoppage over your agreed length, and every PivotTable, chart and summary reads the same label, whoever builds it. The lesson also opens the filters on its key columns to look for empty values, closing them without adding a step, then removes duplicate rows. Changing the threshold later means editing one step, and every report follows at the next refresh.
Why would Power Query count PRESS 4 and Press 4 as two machines when my PivotTable shows one?
Because Power Query compares text exactly, capitals included, and The Complete Excel Course with AI Integration teaches the fix in Lesson 157. The lesson's quiz makes the point: in Power Query North and NORTH would be two regions, while worksheet tools such as PivotTables and SUMIFS treat them as one. So the lesson trims the code columns and sets them in one case with Format and UPPERCASE before anything is grouped or merged. On a downtime export that means machine codes trimmed and set in one case before Group By totals them or a merge looks them up in the asset list, since a merge matches exact text as well. The same lesson strips hyphens out of codes, clears symbols and NA entries out of number columns with Replace Values, and separates a genuine error, caught by Replace Errors, from a cell holding the word error, which needs Replace Values. Tidy codes also make every report read cleanly.
Line 2's export has the same layout as line 1's: can I reuse the whole cleaning query?
Yes: duplicate the query and point it at the new file, the move The Complete Excel Course with AI Integration makes in Lesson 164. The lesson duplicates the finished staging query, opens the gear icon beside its Source step and browses to the next file, and every saved step then runs on the new data. Two cautions come with it. The new file brings faults of its own, so the lesson audits it and filters out the empty dates it finds; and a duplicate does not carry the merges over, so they are done again on a new query that references it. For line 2 that is a few clicks against an afternoon of rebuilding, and the cleaning rules match line 1's exactly. Keep in mind that the two queries are separate from then on, so a rule you change later is changed in both. Lesson 165 shows the append that puts finished queries into one table when you want the lines side by side.
Can Power Query put last year's and this year's downtime logs into one table for a before-and-after?
Yes: Append Queries as New stacks them into a single table, and The Complete Excel Course with AI Integration teaches it in Lesson 165. The lesson appends two years of cleaned sales into one query, renames it, and scrolls the date filter from the first year's dates into the second's to confirm the stack. Because the append is made as a new query, both sources stay untouched, so a fault in the combined table can be traced to the year it came from. Columns meet by their headers, which is why reusing one cleaning query on both years makes the append painless. With both years on one timeline, a PivotTable sets this year's downtime by cause against last year's, the before-and-after an improvement programme has to show. The lesson's quiz draws the distinction worth remembering: merging adds columns side by side, appending stacks rows. Lesson 168 later appends history and new data into one master table.
My workbook has a sheet for every query and has slowed to a crawl: what should load where?
Put just the final cleaned output on a sheet and keep everything else as a connection, the golden rule The Complete Excel Course with AI Integration sets in Lesson 162. Close and Load writes each query to a sheet of its own; the lesson then opens Queries and Connections, uses Load To on the staging and checking queries, and picks Only Create Connection, which keeps them working in the background without a grid full of rows. A connection-only query stays ready for a PivotTable or for the data model, and hovering over it in the pane previews its rows and its last refresh. For a plant workbook that means the raw shift data, the cleaned staging query and the Group By check live as connections, and only the summary the review reads is loaded. Lesson 168 closes the master table the same way, and loading into the data model leads on to Power Pivot, whose lessons from Lesson 169 need Excel for Windows.
Our systems export CSV, XML and PDF reports: which of them can Power Query open?
All three are on Power Query's list, and The Complete Excel Course with AI Integration tours that list before the first import. Lesson 154 opens Data, Get Data, From File and walks through the formats it offers, CSV, JSON, XML, PDF and more, then sets out the ETL workflow the project follows. Every lesson after it works on CSV files, the messy sales exports, the lookup files, the folder of exports and the wide budget export, so CSV is the format you will master. When a system offers a CSV or text export, choosing it gives Power Query the cleanest start. Whatever the source, Lesson 155 teaches the choice that matters most on the import screen: Transform Data rather than Load, because Load drops the data into the sheet as it stands while Transform Data starts a pipeline you can replay. Live database connections sit outside the lessons; file exports are covered all the way from a single CSV to a whole folder of them.
I already run a macro on the daily MES export: what would Power Query do better?
It would make the clean-up visible and replayable without code, and The Complete Excel Course with AI Integration teaches both tools so you can choose job by job. A macro, which FormatWizard teaches from Lesson 136, acts on the sheet in front of it and suits formatting and checks run with one click. Power Query reads the export without editing it and records each repair in Applied Steps under a name of its own (Lesson 156), so anyone can click through what was done, and a step that goes wrong is edited or deleted rather than debugged; Lesson 167 notes that most errors vanish once the step that caused them is deleted. It also combines a folder of exports (Lesson 166) and joins lookup files (Lesson 163), jobs that would take a long macro. Keep the macro for formatting the finished report, and let the query own the preparation underneath it.
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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Formulas for industrial engineers
- Lookups for industrial engineers
- Pivot tables for industrial engineers
- Charts for industrial engineers
- Dashboards for industrial engineers
- Colour rules for industrial engineers
- Data cleaning for industrial engineers
- Data validation for industrial engineers
- Excel tables for industrial engineers
- Text functions for industrial engineers
- Date functions for industrial engineers
- Dynamic arrays for industrial engineers
- Power Pivot for industrial engineers
- Macros and VBA for industrial engineers
- Power Automate for industrial engineers
- Copilot for industrial engineers
- ChatGPT for industrial engineers
- Claude in Excel for industrial engineers
Power Query for other jobs
- Power Query for quantity surveyors
- Power Query for civil engineers
- Power Query for quality engineers
- Power Query for construction managers
- Power Query for health and safety
- Power Query for document controllers
- Power Query for production managers
- Power Query for M&E engineers
- Power Query for every job