The Complete Excel Course with AI Integration
Power Query for production managers
Shift sheets from every line, machine-log exports and a weekly plan laid out sideways: each morning's report begins with the same copying and tidying. The Complete Excel Course with AI Integration teaches the Power Query that does it once and replays it at every refresh, on SalesFusion, one of its industry-standard projects, following a plant's order of work: import, clean, check, look up, combine and reshape.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring a machine-log or manufacturing system export into Power Query as a live connection, so its clean-up is recorded once and replayed on every later file.
- Trim, standardise and set in capitals the line, machine and part codes that operators type in different ways, so grouping and merging see one value each.
- Strip units, placeholders and stray symbols out of quantity and downtime columns, and set each column's true data type so the totals add up.
- Repair dates that arrive as text, then add Year, MonthName, MonthNumber, MonthStart and YearMonth for reporting by period.
- Work out scrap rate and a high-scrap flag as new columns inside the query, then total output and stoppages by line with Group By.
- Fetch standard cycle times or descriptions for every row by merging the log with a parts list, with Left Outer as the join kind so no shift row is lost.
- Sweep a folder of daily logs into a single table that picks up each new file at refresh, and append a new line's export to the history.
- Turn a plan laid out with one column per week or month into rows with Unpivot Other Columns, ready to stand beside actual output.
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 CSVs, it is a plant's data problem in another industry's clothes: codes with stray spaces, numbers stored as text, unreadable dates, lookup lists to join, a folder that gains a file every period and a plan laid out sideways, each tamed by steps you record once.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
Built for HR data, its lookup lessons are the worksheet cousin of a merge: VLOOKUP and XLOOKUP fetch a value by its code one formula at a time, the job a Power Query merge then does for a whole file, and for each file after it, in one step.
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 with Lesson 153 if the shift log already lives in Excel and you have made a PivotTable before: the project explains the idea before the first click. Excel tables and PivotTables still unfamiliar? Lesson 19 and Lesson 57 come first, and Lesson 1 if the whole of Excel is. Comfortable in the Power Query Editor already? Jump to Lesson 163 for the merges, appends and folder query that a stream of daily logs needs.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system Why a clean-up should be recorded rather than repeated: the SalesFusion goal, the extract, transform and load idea, and the first CSV imported from the Data tab's Get Data menu and opened in the Power Query Editor instead of being dropped onto a sheet. The files hold sales; a machine log or a shift export comes in by the same door.
- 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 tidy-up every shop-floor export needs: helper columns dropped and headers renamed without spaces, codes trimmed and put in capitals, symbols, NA and hyphens stripped from number columns, quantities typed as words replaced, true types set, and the date column repaired before Year, MonthName, MonthNumber, MonthStart and YearMonth are added.
- 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 Rules and proof inside the query: custom columns for profit and margin, a conditional column that labels high-value rows and a look at the empty IDs, then a Group By query of totals and row counts, and the Close and Load options, which let staging steps stay off the grid. Scrap rate, yield and a high-scrap flag are built the same way.
- 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 Lookups and stacking: product and region names joined on with Left Outer, the pipeline duplicated for the next year's file with its merges made again on the new query, and both years stacked as one query with Append. A parts master joins the same way, and a new line's export appends.
- 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 A folder as the source: every file in it combined and cleaned by the steps set on a sample file, column quality profiled across the whole data set, profit and fiscal year columns added, and a single fact table assembled from the lookups and the history, with nulls checked. A folder of daily shift logs is exactly this case.
- 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 Plans laid out sideways: the course's export carries its budget and target figures with every month in a column of its own, and Unpivot Other Columns turns them into rows of region, category, month and figure, a query that survives months added later, before the measures are pivoted back and grouped by month start.
- 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.
Could the morning production report be one Refresh away once a production manager learns Power Query?
Yes, and SalesFusion, the industry-standard Power Query project of The Complete Excel Course with AI Integration from Coding Liquids, builds that very routine on sales files; it was designed after talking with people from many different industries. Power Query records every step taken on an export, so the trimming, retyping and stacking done by hand each morning becomes a query that repeats them on the next file (Lesson 154). The lessons work through the faults a plant's files share: codes typed several ways, quantities stored as text, dates Excel cannot recognise, lookups to standard data, a folder that gains a file a day and a plan laid out sideways. Working through the 17 lessons picked out here takes 1 hour 36 minutes; once the queries exist, Monday's report is a new file saved in the folder and a click on Refresh All.
Each line saves its own daily log in a shared folder: can Power Query stack them all into one table?
Yes: The Complete Excel Course with AI Integration teaches the From Folder query that does it, in Lesson 166. You point Get Data at the shared folder and choose Combine and Transform; Power Query reads every file inside, lays their rows end to end and adds Source.Name, naming the file behind every row, which for daily logs carries the line and the date. Cleaning steps written in the Transform Sample File query run on every file, so the trim, the capitals and the data types are defined in one place. A log saved tomorrow is swept in by the next refresh with no edit to the query. Lesson 168 then merges the stacked rows with the lookup lists and appends the history, giving one fact table to report from. Logs built from one template stack cleanly; a line that saves its own layout should be brought into step first.
Operators type the same machine or part code several ways: can the query make them one?
Yes, and inside Power Query that clean-up matters even more than on the sheet, because Power Query is case-sensitive: to a query, LINE3 and Line3 are two different values, so a Group By or a merge would split them. The Complete Excel Course with AI Integration handles it in Lesson 157 on SalesFusion's region and product codes: Trim removes stray spaces, Format turns every code to capitals, and Replace Values strips hyphens so a code written with and without them becomes one. Because these are steps of the query, they run on every new export, and a code typed carelessly on tomorrow's night shift is put right before anyone sees it. Where a code is spelled quite differently, a Replace Values step maps the odd spelling to the right one, and a drop-down list on the shift sheet (Lesson 45) stops new variants at the source.
Downtime arrives with units typed into the cells: can Power Query turn it into numbers that add up?
Yes: Replace Values strips the clutter and a data type makes the rest real numbers, and The Complete Excel Course with AI Integration teaches both on columns just as untidy. In Lesson 157 SalesFusion's money columns lose their symbols, commas, NA entries and hyphens, with Replace With left empty, and NA becomes a true null rather than text. Lesson 158 then sets each column to Decimal Number or Whole Number, replaces quantities written out as words, and adds a custom column that puts a rate typed two ways onto one scale. A downtime column with min after each figure, or a count with pcs, takes the same treatment: replace the unit with nothing, set the type, and the column adds up. Until then a report on text looks finished and calculates wrong, the lesson's own warning, and the reason totals from raw exports so often come out short.
Can Group By total downtime minutes by line and cause before the data reaches a PivotTable?
Yes: Group By totals and counts inside the query, and The Complete Excel Course with AI Integration teaches it in Lesson 161. There a Reference query, which stays wired to the cleaned staging query, is grouped in Advanced mode by month and then by region, with two results for each group: the sum of sales and a count of rows. Swap in line and cause, sum the minutes lost and count the stoppages, and the downtime summary comes from the same clicks, sorted with the biggest loss first. Sorting that way has a second use the lesson points out: a total far too large stands out at once, usually a typing slip in the raw log, while rows with an unreadable date gather under an empty month where they are easy to find. The summary then reloads at every refresh of the log.
Can the query work out scrap rate and flag a bad shift before anyone builds a report?
Yes: custom and conditional columns put the rule inside the query, and The Complete Excel Course with AI Integration builds them in Lesson 160. SalesFusion's query gains Profit as one column minus another, Margin with an if test that returns null when sales are zero instead of dividing by nothing, a conditional column that labels rows of 500 or more High and the rest Normal, and a flag that marks negative sales as returns. Scrap rate follows the Margin pattern with scrap over total output, and a high-scrap flag is the conditional column with your plant's limit in place of 500. The lesson's point is consistency: logic in the query runs identically at every refresh, so the morning report, the weekly review and a supervisor's own copy can never disagree about which shift was bad.
Can a merge put each part's standard cycle time beside every row of the production log?
Yes: in Power Query a lookup is done by merging, and Lesson 163 of The Complete Excel Course with AI Integration shows how. SalesFusion's sales query is joined to a products list on ProductID and to a regions list on RegionCode, each time with Left Outer, the join kind that holds on to all the sales rows and fills the new columns only where a code is found. A parts master holding standard cycle times, ideal rates or descriptions joins the shift log the same way, and from there performance against standard can be worked out in the query or in a PivotTable. Unlike a VLOOKUP dragged down a sheet, the join belongs to the query itself, so tomorrow's rows get their standards without a formula filled down. Lesson 168 finishes with the check that protects a report: after merging, look for empty columns, the sign of a part missing from the master.
Our weekly plan arrives with one column per week: can Power Query reshape it to sit beside actual output?
Yes: Unpivot Other Columns turns the periods into rows, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on an export with a column for every month. You select the columns that describe each row, the region, the category and the measure, and unpivot the rest; every period column becomes rows of period and figure, and because the step names no period, columns added to next quarter's plan unpivot too. The lesson then builds a real date from the period text, pivots the two measures back into columns of their own, and groups them by month start. A weekly plan reshaped this way lines up with the shift log by line and week, so plan and actual can share a PivotTable or a SUMIFS. The finished table is shaped for the data model, built in the Power Pivot lessons, which need Windows.
A new line goes live with its own export: does the whole query have to be built again?
One duplicated query covers it, and The Complete Excel Course with AI Integration shows the shortcut in Lesson 164. A finished cleaning query is duplicated and its Source step pointed at the new file through the gear beside it, so the copy inherits every trim, replacement and data type of the original at once. The merges are made again on the new query, since duplicating the cleaning query does not carry them across, and the lesson audits the new file anyway, finding empty dates of its own. Lesson 165 then appends the two queries with Append Queries as New, which matches columns by their headers and leaves both sources untouched, so a fault can be traced back to its line. For a plant, a new line's export joins the history in one sitting, with nothing built from scratch.
How can I prove the cleaned log is complete before the morning report goes out?
Three checks inside the query, all taught in The Complete Excel Course with AI Integration. Column quality, switched on from the View tab and set to profile the entire data set rather than its first thousand rows, shows the share of valid, error and empty cells in every column (Lesson 166). A Group By query counts the rows and totals the figures for every month and region, so a period with half its usual rows, or a region with none, stands out (Lesson 161). After merges and appends, the fact table is checked for nulls in its key columns (Lesson 168), because joins can let empty values in quietly. On a plant the counts become shifts per line per day: a missing night shift shows up as a short count before anyone reports a figure built on it.
Should the cleaned shift table load onto a worksheet or stay as a connection?
Load only what people will read and keep the rest as connections, the rule The Complete Excel Course with AI Integration teaches in Lesson 162. Close and Load writes a query to a sheet by default; the lesson changes that through Load To, choosing Only Create Connection for the staging and checking queries and deleting the sheets they had filled, so the workbook stays light and quick. A connection-only query still holds its data, ready for a PivotTable or the data model. On a plant, the raw daily logs, the per-file clean-ups and the QA counts can all stay as connections, while the finished fact table goes wherever the PivotTables read it. Lesson 168 ends in the same spirit, with the master table held as a connection for the model.
Once the queries are built, how much of Monday's production report is left to do by hand?
Saving the new log and pressing Refresh All, then reading the checks: that is the payoff of SalesFusion in The Complete Excel Course with AI Integration. The folder query takes in whatever file has arrived (Lesson 166), every cleaning step runs on it, the merges attach the standards, the Group By summary recalculates, and Refresh All, met first with PivotTables in Lesson 65, carries the new figures into every PivotTable in the workbook. What stays with you is judgement: whether a total that jumped is a real event or a typing slip in the raw log, and what the meeting should do about it. The time once spent copying and tidying moves to the questions only a production manager can answer, and the report reads the same whoever presses the button.
Is Power Query difficult to learn for a supervisor who has only ever used the Excel grid?
It is easier than it looks, because it runs on menus and every click is written down for you, and The Complete Excel Course with AI Integration starts it gently. Lesson 155 imports a CSV through Get Data in moments, and from Lesson 156 each change is listed under Applied Steps, where it can be renamed, clicked to see the data at that point, or deleted; Lesson 167 notes that deleting the step behind an error clears most of them. Typing is limited to short formulas in custom columns, such as the rate in Lesson 158. A supervisor who can filter a column and use Find and Replace already knows the ideas behind most steps, since Trim, Replace Values and filters behave like their worksheet cousins (Lesson 22). The finished SalesFusion workbook is among the practice files, so your own query can be set beside a working one at any point.
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 production managers
- XLOOKUP and VLOOKUP for production
- Pivot tables for production managers
- Charts for production managers
- Dashboards for production managers
- Conditional formatting for production
- Data cleaning for production managers
- Data validation for production managers
- Excel tables for production managers
- Text functions for production managers
- Date functions for production managers
- Dynamic arrays for production managers
- Power Pivot and DAX for production
- Macros and VBA for production managers
- Power Automate for production managers
- Copilot for production managers
- ChatGPT for production managers
- Claude in Excel for production managers
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 M&E engineers
- Power Query for industrial engineers
- Power Query for every job