The Complete Excel Course with AI Integration

Power Query for management consultants

A client's data arrives as CSV extracts from different systems, a folder of regional files and a budget grid with a column per month, and no analysis can start until it is one table. The Complete Excel Course with AI Integration hands that preparation to Power Query on SalesFusion, an industry-standard project, and this page picks out the lessons that do it: cleaning, types, business rules, tie-out checks, merges, appends, a whole folder at once 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:

  • Bring a client's CSV extract into Power Query through Get Data, choosing Transform Data so every cleaning step is recorded rather than done once by hand.
  • Trim codes and set them in one case, strip symbols and stray text out of figures, and give every column its true type, so totals and joins work.
  • Write a client's business rules into the query as custom and conditional columns, such as profit, margin and a size band, applied alike at every refresh.
  • Prove an extract before it is analysed with a Group By query of totals and row counts by month and region, kept as a connection.
  • Join code tables to the data with a left outer merge, and find the rows whose code had no match.
  • Point a finished pipeline at the next period's file, and append the periods into one table for comparisons.
  • Combine every file in a folder of regional or monthly extracts into one table that takes in new files at the next refresh.
  • Unpivot a cross-tab with a column per month into a long table ready for PivotTables and a data model.

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 files, it rehearses the first week of a data-heavy engagement: an extract that will not total, code tables to join, a second year to line up, a folder of period files to combine and a wide budget grid to turn, all ending in one master table and a check of its totals.

  • Project 05

    SalesPlusPerformance

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

    Built on order-level sales data, it is where a clean table earns its keep on a case: PivotTables that cut it by region, category and month, slicers a team clicks through in a working session, and Refresh All (Lesson 65) to carry a revised extract into every pivot at once.

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

Start at Lesson 153 if tables, XLOOKUP and PivotTables are second nature: SalesFusion opens there and runs from a single extract to a folder of them. Newer to Excel tables? Lesson 19 and the PivotTable lessons from Lesson 57 give you the footing first, and Lesson 1 is where a newcomer to Excel begins. Already at home in the Power Query Editor? Join at Lesson 163, the first of the combining lessons: merges, appends and the folder query.

17 of 186 lessons · 1 h 36 min

15 SalesFusion: advanced data tools and a Power Query modelling system 7 of 21 lessons · 37 min From raw extract to typed table: the ETL idea of steps recorded once and replayed, a CSV brought in through Get Data with Transform Data, columns removed and renamed, codes trimmed and set in one case, symbols and NA entries stripped from figures, true number and date types, and year and month columns for period analysis. The files are sales extracts; a client's system export behaves 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
  4. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  5. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  6. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  7. 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 9 of 21 lessons · 52 min Rules, checks and combining: profit, margin, size band and return columns, a Group By query that totals and counts rows by month and region, connection-only loading, merges with product and region tables, a pipeline pointed at the next year's file, the years appended, a whole folder combined with every file cleaned by the same steps, and one master table checked for gaps after each join.
  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
  4. 163 Merge queries in Power Query Look up product and region names with a left join 5 min
  5. 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
  6. 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
  7. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  8. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  9. 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 Unpivot for the cross-tab reports clients send: a budget export with a column per month turned into a long table of period and amount with a real month-start date, so the query keeps working when another month's column arrives.
  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.

Is Power Query the skill that gets a management consultant from a client's raw data drop to an analysis-ready table, and where is it taught properly?

Yes. The Complete Excel Course with AI Integration from Coding Liquids teaches Power Query on SalesFusion, an industry-standard project designed after talking with people from many different industries, whose raw files look like a client's first data drop: CSV extracts with symbols in the figures and placeholders in the dates, code tables to join, a second year to line up, a folder of period files and a wide grid of monthly targets. Across 17 lessons and 1 hour 36 minutes, the path runs from importing one extract to a single master table fed by a whole folder, with every step recorded so a revised file reruns at a refresh. You build each query yourself from the course's dataset and compare it with the finished workbook, and you leave with a method that works on whatever a client sends, because the steps care about the shape of the data, not its subject.

A client's extract will not total: words in the quantity column, symbols in the amounts, codes typed every which way. Can Power Query sort that out?

Yes, and once sorted it stays sorted for every extract after it. The Complete Excel Course with AI Integration hands you exactly that file in SalesFusion. Codes are trimmed and set in capitals, hyphens are stripped from product IDs, and the money symbol, commas, NA entries and stray hyphens are cleared out of the amount columns with Replace Values (Lesson 157). Quantities written as words are found in the column's filter list and replaced, then the column becomes a whole number; percentage signs leave the discount column, and a custom column puts every discount on one scale, whether it was typed as a whole number or as a fraction (Lesson 158). The reason it matters on a case: Power Query cannot add up text, so a report built on text columns looks fine and totals wrong, and these steps are what make the client's figures add up.

Why would a consultant build a query rather than a macro or a sheet of formulas to prepare client data?

Because a query leaves the client's file untouched and replays every step on the next version, in the order you set. The Complete Excel Course with AI Integration makes the case from the first SalesFusion lesson: Power Query records the clean-up as steps in the Applied Steps list and runs them again at each refresh (Lesson 153, Lesson 156), and choosing Transform Data over Load turns an import into a pipeline instead of a one-time paste (Lesson 155). Formulas leave helper columns and ranges to maintain beside the data, and a macro needs code changed when the data changes. Business logic built into the query, such as profit, margin and a size band, runs identically at every refresh, so two reports from the same data cannot disagree (Lesson 160). Macros keep their place, and FormatWizard teaches them for checking and formatting a sheet; reshaping and combining data is Power Query's job.

The client sends a revised extract the night before the readout: how much of my work has to be redone?

Almost none of the preparation, which is the reason consultants learn Power Query. Every cleaning step in The Complete Excel Course with AI Integration is saved with the query and replayed when you refresh, so a corrected file with the same layout runs through the same trims, type changes, merges and rules without another click. If the revision arrives as a new file rather than a replacement, Lesson 164 shows the move: duplicate the query and change only its Source step, and the whole pipeline points at the new file. A folder query goes further, taking in any file saved into the folder at the next refresh (Lesson 166). Then rerun the check: the Group By query of Lesson 161 totals and counts every month and region again, so you see at once what the revision changed before the numbers reach a slide.

Can Power Query combine a folder of a client's regional or monthly files and show me what is in them?

Yes: one folder query brings every file together, and column profiling tells you what came in. In Lesson 166 of The Complete Excel Course with AI Integration, Get Data From Folder with Combine and Transform Data gathers the period files into a single table, with a Source.Name column recording which file each row belongs to. The lesson then widens column profiling from the first thousand rows to the entire data set and switches on column distribution, column quality and column profile, so the share of valid, empty and error values and the spread of each column are visible at a glance. Cleaning steps placed in the Transform Sample File apply to all the files alike, and Lesson 167 adds profit and fiscal year columns before the result becomes the SalesFact query. A shared layout is the one condition; anything saved into the folder later arrives at the following refresh.

Can a merge replace the VLOOKUPs I drag down a client's data to map codes to names and segments?

Yes, and it maps every future row as well. The Complete Excel Course with AI Integration calls a merge Power Query's version of VLOOKUP and builds it in Lesson 163: the sales query is merged with a product table on ProductID and a region table on RegionCode, with Left Outer as the join kind so every sale is kept and the names arrive wherever a code matches, then expanded into ordinary columns. Lesson 164 reads through the other join kinds, Right Outer, Full Outer and Inner, before keeping Left Outer, and Lesson 168 checks the merged table for nulls, because a code missing from the lookup comes back empty. On a case, the same merge joins a client's codes to your segment hierarchy, and a code the hierarchy has never seen appears as a gap rather than as a wrong total on a slide.

Client reports come as cross-tabs with months across the top: can Power Query turn them into data I can analyse?

Yes, and the result keeps working when the next month's column appears. The Complete Excel Course with AI Integration takes exactly that shape in Lesson 173: a budget export holding sales and unit targets by region and category, with one column per month. After the headers are promoted, Unpivot Other Columns holds the descriptive columns still and folds every month into rows, the new columns are renamed YearMonth and Amount, and n/a entries are cleared. A custom column then makes each period a real date, and Pivot Column spreads the metric column back out into Budget Sales and Target Units, so each measure has a column of its own. Because the unpivot names no month, a grid with an extra column passes straight through. Cross-tabs from a client's reporting pack become, in one query, the long table that PivotTables and a data model expect.

Before a number goes into the deck, what in the workbook proves the query's output matches the client's own totals?

With a check built into the workbook, which The Complete Excel Course with AI Integration teaches as a standard step. In Lesson 161 a reference query, wired to the staging query so it follows every later change, groups the data by month and region and returns a total and a row count for each, sorted with the largest totals first. Set those against the client's own control figures and the tie-out is done; a row count that falls short shows lost rows, and a total that looks too good, one region outselling everything, usually turns out to be a typing slip. Null months point to dates the source file could not read. After the combining work, Lesson 168 checks the master table for empty codes and amounts, and Lesson 165 scrolls the date filter across both years to confirm the stack.

Can Power Query stand in for SQL when a client hands over raw tables?

Yes, for most of the work, through menus rather than typed queries, and The Complete Excel Course with AI Integration maps the parallels as it goes. A merge does the work of a join, and Lesson 164 reads through the join kinds you would expect, Left Outer, Right Outer, Full Outer and Inner. Group By totals and counts by one or more columns, as GROUP BY does (Lesson 161); Append stacks tables with matching headers, much as a union does (Lesson 165); filters and Remove Duplicates trim the rows (Lesson 160). Under the buttons sits M, Power Query's own formula language, which appears when a custom column is written by hand (Lesson 158). What a consultant gains over SQL is the setting: Power Query works on files and folders straight from the client, keeps the source untouched and lands the result inside Excel, where the analysis happens.

On a client model, which work belongs in the query and which in DAX measures?

Each has its own job, and The Complete Excel Course with AI Integration teaches the two in the order a data model needs them. Power Query shapes the data before it is loaded: rows filtered, columns typed, tables joined and fixed row-level values such as profit and margin added (Lesson 160). DAX measures then calculate at report time and respond to every filter and slicer: total sales, margin percent, orders counted once with DISTINCTCOUNT and a share of total that ignores the category filter through CALCULATE and ALL (Lesson 170). The course even shows the hand-off failing: a measure errors because a sales column is still text, and the fix goes back into Power Query before the measure is rebuilt. The Power Pivot and DAX lessons need Excel for Windows; the Power Query lessons on this page do not.

What trips people up with Power Query, and does the course show the way out of each trap?

Yes: SalesFusion walks into the common traps on purpose so you learn the exits. Keep every source file in the project folder, or the query connections break (Lesson 153). Remember that Power Query reads capitals, so North and NORTH count as two regions until the text is set in one case, and that Replace Errors fixes real errors but not a cell holding the word error (Lesson 157). Clear an impossible date before changing the type, or the conversion fails (Lesson 159). Load only the finished table to a sheet and keep staging queries as connections, or the workbook bloats (Lesson 162). Choose a decimal type for profit, or it is silently rounded (Lesson 168). And when a step breaks, deleting the step that caused it usually clears the error (Lesson 167). The Complete Excel Course with AI Integration turns each of these into a habit.

Do I need Power BI, a database tool or any other software for this, or is Excel enough?

Excel is enough: Power Query is built into it, under Get Data on the Data tab, so The Complete Excel Course with AI Integration teaches it with nothing to install. Lesson 154 opens From File and its formats, CSV, JSON, XML, PDF and more, which covers the way most client data reaches a consultant, as files and folders of files. The same lesson notes that a cleaned query can load into Excel or into Power BI, so the habits carry across; Power BI itself has no lesson in the course, and connecting live to a client's database is not taught. The course's requirements name Windows only for Power Pivot and Power Automate, and none of their lessons is on this page, so these lessons suit a Mac running Excel as well. The finished tables feed PivotTables, charts and budget against actual comparisons in the same workbook.

Can the queries I build on one case be reused for the next client?

Yes, wherever the new data shares the old layout, and The Complete Excel Course with AI Integration shows the move that makes it quick. In Lesson 164 a finished staging query is duplicated and only its Source step is changed, through the gear icon beside it, to point at another file; every cleaning step follows, and the lesson still audits the result, because the new file brings nulls of its own. Steps can be renamed in Applied Steps (Lesson 156), so a pipeline documents itself for whoever inherits it. For a team that sees the same system's exports across many clients, that means an import built once and adapted quickly, with the checks run every time. Where a client's layout differs, the steps still show exactly which column or type needs a change, so even a partial reuse beats starting from a blank workbook.

Can I learn this in the first week of a case, while the data request is still out?

Yes: the Power Query lessons here come to about 1 hour 36 minutes, less than the wait for most data requests. The Complete Excel Course with AI Integration orders them the way a data drop is handled: import and clean one extract, add the rules and the checks, join the code tables, line up a second year, combine a folder, then unpivot a grid. By the end of the first block, at Lesson 159, a single extract is fully typed and dated, which is useful the very day the client's file lands. The SalesFusion dataset and the finished workbook come with the course, so each query can be compared with a working answer. Lifetime access keeps the lessons open for the case where an odd export turns up, and the plan with instructor support adds written answers from the instructor for two months from the day you switch it on.

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.