The Complete Excel Course with AI Integration
Power Query in Excel for supply chain analysts
For supply chain analysts who rebuild ERP extracts by hand each week: orders, receipts and stock files with stray spaces in SKU codes, text where quantities belong and dates Excel cannot read. The Complete Excel Course with AI Integration records that clean-up once in Power Query on SalesFusion, one of its industry-standard projects. These lessons follow an extract from import through cleaning, checks, lookups and appends to a folder of weekly files and an unpivoted plan.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Connect to an ERP extract saved as a CSV through Get Data and Transform Data, so its clean-up becomes a recorded set of steps instead of a weekly copy and paste.
- Trim SKU and site codes and set them in one case, strip symbols and NA text out of quantity and value columns, and give every column its true data type.
- Clear placeholder and impossible dates out of an order date column, then add year, month, month start and year-month fields for monthly reporting.
- Add rule columns such as returns and high-value lines inside the query, and prove each load with a Group By check of totals and row counts by month and region.
- Bring item and site details onto every order line by merging against lookup files, and check the key columns for blanks after each join.
- Repoint a finished query at next year's file, stack both years as a single history, and gather a folder of weekly extracts into a single table that absorbs each new file at refresh.
- Unpivot a demand plan or capacity grid laid out one period per column, so each period and quantity becomes a row that sits beside actual orders.
- Keep staging and checking queries as connections only, so the workbook loads one finished table instead of every intermediate copy.
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.
The course's Power Query project, built on sales files as untidy as any ERP output: one CSV cleaned, two lookup files merged, two years appended, an entire subfolder of period exports combined and a wide grid unpivoted, each a step you will reuse on orders, receipts and stock.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales, it shows what a clean extract is for: PivotTables that summarise it by region and month, slicers that answer the weekly review's follow-up questions, and Refresh All, which updates every PivotTable in the workbook at once.
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, where SalesFusion's folder of raw CSV files and lookup tables is laid out; each query after it builds on the last. Power Query asks for little beforehand: comfort with Excel tables (Lesson 19) and a PivotTable or two (Lesson 59) is plenty, and a first-time Excel user starts the course itself at Lesson 1. Already importing CSVs through Get Data? Jump to Lesson 163, where the lookup merges, the year-on-year append and the folder of files begin.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system SalesFusion's goal and its raw material: a finished report with slicers as the target, the ETL idea of steps recorded once and replayed, Get Data's file formats, and a messy sales CSV opened through Transform Data rather than Load. This is the point where an ERP extract stops being a copy and paste job.
- 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 One extract cleaned end to end: temporary columns removed and headers renamed, codes trimmed and set in capitals, symbols, NA and stray hyphens stripped from figures, every column given its type, and the date column cleared of placeholders before fields for the year, the month name and number, the month start and the year-month 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 checks inside the query: profit, margin, high-value and return columns that calculate the same way at every refresh, a referenced Group By check giving every month and region a sales total and a row count, and staging queries kept as connections so only the final table is loaded.
- 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 extending: product and region lookups merged onto every sales line, the finished pipeline repointed at a second year's file with its merges done again, and both years appended into one history.
- 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 One query that gathers a whole subfolder of period exports and absorbs each new file at refresh, its sample-file steps applied across them all, profit figures and fiscal-year fields added, and a fact table merged with its lookups, appended to the history and checked for empty values.
- 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 A wide export laid out one month per column, reshaped so that each month and its figure become a row, given real dates, split into its two metrics and totalled by month: the shape a demand plan or capacity grid needs before it can sit beside actuals.
- 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.
Combining ERP exports, standardising SKU codes, lining up shipment dates: where does a supply chain analyst learn to hand that ETL work to Power Query?
The Complete Excel Course with AI Integration from Coding Liquids puts exactly that in your hands, inside Excel, on SalesFusion, one of its industry-standard projects designed after talking with people from many different industries. Its raw folder could pass for a week of ERP output: CSV files with symbols inside figures, codes padded with spaces, quantities spelt as words, dates that cannot exist, two lookup files, a subfolder of exports for separate periods and a wide grid holding one month per column. You import one file (Lesson 155), clean and type it (Lesson 157 to Lesson 159), check it with Group By (Lesson 161), join the lookups (Lesson 163), stack a whole folder (Lesson 166) and unpivot the grid (Lesson 173). The 17 lessons on this page, 1 hour 36 minutes of them, follow that order, and every step is recorded once and rerun at each refresh.
A fresh stock snapshot is saved into the weekly folder each Monday: can Power Query take it in without my touching the query?
Yes: that is the folder query The Complete Excel Course with AI Integration builds in Lesson 166. Get Data from Folder, then Combine and Transform, stacks every file in the SalesFusion period subfolder into one table, and a Source.Name column keeps the name of the file behind each row; for weekly snapshots named by date, that column tells you which week every stock line belongs to. The clean-up lives in the Transform Sample File, carrying the renames, trims, upper-case codes, replacements and data types of the earlier lessons, and it runs on each file the subfolder holds, next Monday's included. Lesson 167 layers profit figures, date fields and fiscal-year columns over the stack and ends with SalesFact, the table the whole subfolder feeds. Drop the new snapshot in, press Refresh, and the stack is a week longer.
Can the query bring supplier names and site details onto every order line from the master files?
Yes: a merge does it, and The Complete Excel Course with AI Integration builds three of them on SalesFusion. Lesson 163 imports the product and region lookup files, promotes the regions file's first row to headers, then joins each lookup to the sales query on its code with the join kind set to Left Outer, which keeps every order line whether or not its code is found, and expands the new columns without a prefix cluttering their names. Lesson 164 repeats the merges on the second year's query, since duplicating a cleaning query does not carry them over, and reads through the other join kinds on offer. Lesson 168 merges the folder table the same way and then checks the key columns for empty values, because a merge can let blanks in. Swap the product file for your item master and the region file for your site list, and every line arrives with its descriptions attached.
Next year's order history arrives as a new file in the same layout: can the finished query be pointed at it and the two years stacked?
Yes, and The Complete Excel Course with AI Integration shows both moves on two years of sales. Lesson 164 duplicates the finished staging query and repoints only its Source step, through the gear icon beside it, at the second year's file, so every cleaning step travels across with nothing rebuilt; the lesson still audits the result, since the new file brings empty dates of its own. Lesson 165 then uses Append Queries as New to stack both years in a single query, matched by column headers, with both originals left untouched so a fault can be traced back. Scrolling the date filter from one year into the next confirms the stack. For a supply chain analyst that is a single demand history across years, ready for a seasonal comparison by month, built once and extended by repeating the same two moves next year.
Our demand plan comes from the planners as a grid with a column per week: can Power Query turn it into rows that sit beside actual orders?
Yes: Unpivot Other Columns exists for exactly that layout, and The Complete Excel Course with AI Integration works through it in Lesson 173. The practice file is a wide budget export, one month per column. Select the descriptive columns, region, category and metric, choose Unpivot Other Columns, and every period column folds down into rows: the old header becomes a period field and each cell an amount. Because Power Query cannot do date arithmetic on text, a MonthStart column then turns each period label into a true date; Pivot Column separates the two metrics the file carries, and Group By totals them by month. The unpivot never names a period column, so the planners can add next week's column and the query still loads untouched. Reshaped like this, the plan lines up row for row with the order extract, ready for a plan-against-actual view of every SKU and week.
Can a query flag a week whose extract looks wrong, such as one site shipping ten times its usual volume, before the pack goes out?
Yes: The Complete Excel Course with AI Integration builds that check as a query of its own in Lesson 161. The staging query is referenced, so the check stays wired to it, and Group By in Advanced mode totals sales and counts rows for every month and region, sorted biggest first. The lesson's reasoning fits a supply chain extract exactly: with the largest totals on top, a figure that looks too good stands out at once, and one region outselling the planet is usually a typo. Empty months in the result point to dates the raw file could not read. Lesson 166 adds the View tab's column quality, distribution and profile across the entire dataset, not just its first thousand rows, so blanks and errors show column by column. Grouped by site and week, the same check catches a doubled file or a missing day before anyone reads the pack.
Where should the on-time flag and the fill-rate figure be worked out: inside the query or later in the model?
Row by row in the query, ratio by ratio in the model, and The Complete Excel Course with AI Integration teaches both places. Power Query handles rules that belong to each line: Lesson 160 adds custom columns for profit and a margin that cannot divide by zero, a conditional column for high-value sales and a custom one that labels returns, and the lesson's point is that logic built there runs identically at every refresh, so no two reports disagree. A late flag per order line is that kind of rule. A fill rate is different: it is delivered over ordered for whatever the reader has filtered, so it belongs in a DAX measure, which recalculates for every filter and slicer (Lesson 170); that lesson, like the data model before it, needs Excel for Windows. Built that way, each line carries its flag and every slice of the dashboard computes its own rate.
The weekly workbook has grown slow and heavy: is Power Query part of the cure?
Yes: loaded the way The Complete Excel Course with AI Integration teaches, queries slim a workbook down. Lesson 162 sets the golden rule: only the final output goes onto a sheet, while staging and checking queries stay as connections, held in memory for a PivotTable or the Data Model, so the file stops holding several copies of one extract. The trimming starts earlier: Lesson 156 deletes unwanted columns as the very first step, since each later step then has less to chew through, and Lesson 159 chooses Date over Date and Time, saving memory on every row. Lesson 168 warns that columns nobody needs bite back as a model grows, and removes the file-name column once its debugging job is done. A weekly pack built on those habits opens fast, refreshes from the raw exports and holds a single clean table where many pasted copies used to sit.
A refresh broke after the extract moved to a new folder: is fixing that taught?
Yes, and The Complete Excel Course with AI Integration heads it off before it happens. Lesson 153 gives the rule at the start of SalesFusion: keep every source file inside the project folder, or the query connections break. When a file does move, the fix is the one Lesson 164 uses for a new year: open the Source step's gear icon, browse to the file and confirm, and every later step runs on the new location. When the break is inside the steps, Lesson 167 shows the remedy that clears most errors: find the step that caused it, such as a type change that no longer fits, and delete it. For ERP extracts that change name or place, that is the difference between a broken Monday and a quick repair, and the query itself stays intact for every refresh after.
The supply chain dashboards I see online are built in Power BI: is Power Query in Excel a step towards that?
A direct one, and The Complete Excel Course with AI Integration makes the link plain in Lesson 154: the ETL pipeline extracts data into one staging area, transforms it to one set of rules and loads it into Excel or Power BI for reports and dashboards. The clean-up, merges, appends, folder queries and unpivots you build on SalesFusion are the extract-and-transform half of that pipeline. The course then finishes the job inside Excel: a data model with relationships and DAX measures, which needs Excel for Windows (Lesson 169), and an interactive dashboard of PivotTables and slicers built from it (Lesson 172). Power BI itself is not taught. What you take away is the part every dashboard depends on, data that arrives clean and joined each time, plus a dashboard you can build in the Excel your team already opens.
Why would a merge in Power Query miss SKUs that VLOOKUP matched without trouble?
Because Power Query reads capitals as different values, and The Complete Excel Course with AI Integration teaches the clean-up that prevents it. Lesson 157 makes the point as a quiz: in Power Query, North and NORTH are two regions, where Excel's lookups treat them as one. So before any merge, the lesson trims the region and product codes, sets them in upper case and strips the hyphens out of product IDs with Replace Values, leaving one form of every code on both sides of the join. A stray space or a hyphen breaks a match in any tool; capitals break it only in Power Query. Do the same to your SKU column and to the item master's, and the merge of Lesson 163 finds every pair VLOOKUP found. Fixed in the query, the clean-up repeats on every extract that follows.
Orders come from the ERP and receipts from the warehouse system, with different column names: can Power Query still put them together?
Yes, by the route that fits the two files, and The Complete Excel Course with AI Integration teaches both routes. When the files describe the same kind of row, such as two systems' order lines, they are stacked with Append Queries as New, which matches columns by their headers (Lesson 165); renaming the headers first, the step Lesson 156 performs on every column of the sales file, makes the two systems agree. When the files describe different things that share a key, such as orders and receipts that both carry the order number, a merge brings the receipt columns onto each order line instead (Lesson 163). Merging adds columns side by side and appending stacks rows, the distinction the lesson checks with a quiz. Either way the steps are saved, so next week's pair of extracts joins the same way at a refresh.
Which lesson gets my first real extract clean enough to use at work, before the rest of SalesFusion?
Lesson 159, and every lesson after it adds something your pack can use that same week. By then, The Complete Excel Course with AI Integration has taken you through importing a CSV with Transform Data (Lesson 155), removing and renaming columns (Lesson 156), cleaning text and codes (Lesson 157), typing every column (Lesson 158) and adding the date fields a monthly report sorts by: one export, cleaned from start to finish. Repeat that sequence on your own order extract and its weekly clean-up is finished for good. Quality checks, lookup merges, the year-on-year append and the folder of files follow, and the whole path takes 1 hour 36 minutes. SalesFusion's raw files and its complete workbook are included, so each step can be held against a version that works, and with lifetime access you can return whenever a new extract needs a new step.
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 supply chain analysts
- Lookups for supply chain analysts
- PivotTables for supply chain analysts
- Charts for supply chain analysts
- Dashboards for supply chain analysts
- Conditional formatting for supply chain
- Data cleaning for supply chain analysts
- Data validation for supply chain
- Excel tables for supply chain analysts
- Text functions for supply chain analysts
- Date functions for supply chain analysts
- Dynamic arrays for supply chain analysts
- Power Pivot and DAX for supply chain
- Macros and VBA for supply chain analysts
- Power Automate for supply chain analysts
- Copilot for supply chain analysts
- ChatGPT for supply chain analysts
- Claude in Excel for supply chain