The Complete Excel Course with AI Integration

Power Query for data analysts

Much of an analyst's week can vanish into preparation: the same exports cleaned, joined and reshaped by hand before a single question is answered. The Complete Excel Course with AI Integration turns that preparation into a Power Query pipeline you build once and refresh, on SalesFusion, an industry-standard project, and this page picks out the lessons in ETL order: extract, repair, rules and proof, disciplined loading, joins and appends, a folder of files and reshaping.

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:

  • Build an ETL pipeline in Power Query: extract a CSV with Transform Data instead of Load, transform it in recorded steps, and load only the finished table while staging queries stay as connections.
  • Profile every column before trusting it, with column quality, distribution and profile switched from the first thousand rows to the entire data set.
  • Fix the faults that make reports calculate wrong: stray spaces and mixed case in codes, symbols and NA text in numeric columns, numbers written as words and dates that are not dates, each column set to its true data type.
  • Write business rules into the query with custom and conditional columns, such as profit, a margin that never divides by zero, a high-value flag and a return flag.
  • Validate a dataset with a reference query that groups it by month and region, totals it and counts its rows, so an implausible figure is caught before it is reported.
  • Join tables with Merge Queries and a left outer join that loses no record, and stack tables and whole folders of files with Append and From Folder.
  • Move a finished pipeline onto a new file by changing only its Source step, and build one fact table from history, folder data and lookups, ready for a data model.
  • Reshape a wide export with Unpivot Other Columns, pivot a metric column back into measures and group the result by month.

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.

    Every stage of an analyst's ETL pipeline on deliberately messy CSV files: profiling, repairs and true data types, rule columns, a Group By check, joins to lookup tables, a second year and a whole folder stacked in, a fact table, and a wide budget grid reshaped, all replayed by one refresh.

  • Project 05

    SalesPlusPerformance

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

    Where the clean output earns its keep: PivotTables that group dates and summarise by category, slicers that cut the view, and Refresh All, the one button that brings queries and PivotTables up to date together.

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    The worksheet lookups a merge replaces: VLOOKUP, XLOOKUP and INDEX with MATCH bringing department and location details into an HR table, so the join is already familiar when Power Query performs it for every row 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 Excel tables and PivotTables are already part of your work: SalesFusion begins with the ETL idea and follows it through in order. New to PivotTables? Take the section from Lesson 57 first, or begin at Lesson 1 if Excel itself is new. Already cleaning data in the Power Query Editor? Jump to Lesson 163, where joins, reusable pipelines, appends and the folder query start, and finish with Lesson 173 for reshaping.

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 Extract, the first letter of ETL: the finished SalesFusion report toured as the goal, Power Query explained as steps recorded once and replayed on every refresh, and a messy sales CSV brought in through Get Data with Transform Data chosen over Load, so the import becomes a pipeline rather than a one-off paste.
  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 Transform, part one, the repairs: temporary columns removed and headers renamed without spaces, codes trimmed and set to one case, symbols, commas and NA cleared from numeric columns, numbers written as words replaced, true data types set, and a date column cleaned and split into year, month and year-month fields.
  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 2 of 21 lessons · 11 min Transform, part two, rules and proof: profit, margin, high-value and return columns written into the query, duplicates removed on the order key, then a reference query that groups sales by year-month and region with a row count, so a figure that looks too good is caught before anyone reports it.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min Load, done with discipline: Close and Load, the Queries and Connections pane, and the choice between a table, a connection only and the Data Model, with the golden rule of loading only the finished output and keeping staging queries out of the grid.
  1. 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 6 of 21 lessons · 35 min Combining sources: Merge Queries with a left outer join to bring product and region details beside every sale, the other join kinds read through, a pipeline moved to next year's file by changing its Source step, two years appended, a folder of period files combined with profiling over the whole dataset, and one master fact table built and checked for nulls.
  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
  4. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  5. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  6. 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 Reshaping: a wide export with a column per month unpivoted into YearMonth and Amount, a real month-start date added, the metric column pivoted back into budget and target columns, and the result grouped by month, ready to sit beside actuals.
  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.

Which Power Query course takes a data analyst from messy CSVs to a refreshable pipeline?

The Complete Excel Course with AI Integration from Coding Liquids takes you there through SalesFusion, an industry-standard project designed after talking with people from many different industries. Its raw material is the kind of data analysts inherit: CSV exports with symbols inside the numbers, codes in mixed case, dates that are not dates, lookup files, a second year, a folder of period files and a wide grid of monthly targets. The path on this page follows ETL in order over 17 lessons and 1 hour 36 minutes: extract a file, transform it with recorded steps, prove it with a Group By check, load only the finished output, combine sources with merges, appends and a folder query, then reshape the wide grid. Every step is built by your own hand from the course's dataset, with the finished workbook to compare against, and each one replays on the next file at a refresh.

Is Power Query basically SQL for Excel?

In purpose, much of it is, and The Complete Excel Course with AI Integration teaches the parts an analyst would otherwise write in SQL, through menus instead of code. Choosing and renaming columns (Lesson 156) is a SELECT; filtering out nulls and removing duplicates (Lesson 160) does what WHERE and DISTINCT do; Group By with a sum and a row count (Lesson 161) is GROUP BY; Merge Queries with a left outer join (Lesson 163) is a LEFT JOIN, and Lesson 164 reads through the other join kinds, inner, right outer and full outer among them; Append (Lesson 165) is a UNION. The difference is that every step is recorded in Applied Steps as you click and replayed at each refresh. SQL itself is not taught, and the lessons connect to CSV files and folders rather than a database, but the thinking transfers in both directions.

Power Query or DAX: which one should do the work?

Each has its own job, and The Complete Excel Course with AI Integration teaches the split on one project. Power Query shapes the data before it lands: cleaning, types, rule columns such as profit and margin on every row (Lesson 160), merges and appends. DAX calculates after it lands, as measures that respond to every filter and slicer: total sales, margin percentage, percent of total and a distinct count of orders in SalesFusion's data model (Lesson 170). The lesson that opens the project puts it in one line: Power Query makes data usable, and the data model makes it useful (Lesson 153). A sensible rule follows from that: anything fixed per row belongs in the query, anything that must re-aggregate for each slice belongs in a measure. The Power Pivot and DAX lessons need Excel for Windows, while every Power Query lesson works on a Mac as well.

Is Power Query hard to learn, and do I need to write M code?

It is easier than most analysts expect, because nearly all of it is menus and recorded steps. In The Complete Excel Course with AI Integration you import, clean, merge, append and reshape by clicking, and Power Query writes each action into Applied Steps for you (Lesson 156). The typing is limited to short custom columns: a discount rule that copes with rates typed two different ways (Lesson 158), a year-month label (Lesson 159) and a month-start date built from text (Lesson 173), each a single line of M that reads much like an Excel formula. Writing whole queries in M is not taught, and the project never needs it. The faults are taught too: when a step breaks, deleting the step that caused it clears most errors (Lesson 167), and Replace Errors only catches genuine errors, not a cell holding the word error (Lesson 157).

Can Power Query profile a dataset before I analyse it?

Yes, and The Complete Excel Course with AI Integration switches on tools that many users never find. In Lesson 166, the View tab's Column quality, Column distribution and Column profile are turned on, and profiling is changed from the first thousand rows to the entire data set, so the counts of valid, error and empty values, the distinct values and the statistics behind each column describe all of the data rather than a sample. Then Lesson 161 builds a check of its own: a reference query that groups sales by year-month and region, totals them and counts the rows, sorted biggest first, so a total that looks too good, such as one region outselling the planet, stands out as the typo it usually is. Null months in that check point straight at dates the source could not read, which tells you where the extract needs attention.

Will my cleaning steps run again on next week's extract without being redone?

Yes: that is the point of Power Query, and The Complete Excel Course with AI Integration proves it three ways. Every step you take is saved in Applied Steps and replayed at each refresh (Lesson 156), so the same trims, replacements and data types run on any file that arrives in the same layout. When a new file replaces the old one, changing only the Source step moves the whole pipeline onto it, as Lesson 164 does for a second year of sales, with an audit afterwards because a new file brings its own nulls. And when files keep arriving, From Folder combines every file in a folder, applying the steps set on one sample file to all of them, including the ones saved next week (Lesson 166). A Source.Name column records which file each row came from, which makes a bad file easy to trace.

How do merges in Power Query compare with XLOOKUP on the sheet?

They answer the same question, and The Complete Excel Course with AI Integration teaches both so you can choose. On the worksheet, XLOOKUP and INDEX with MATCH pull a value from a lookup table into each row (Lesson 69 and Lesson 71), and IFERROR handles the codes that find no match (Lesson 70). In Power Query, Merge Queries does the join once for the whole table: Lesson 163 merges the sales query with product and region lookups on their codes using a left outer join, which keeps every sale and fills in details only where a match exists, and the lesson calls a merge Power Query's version of VLOOKUP. The merge reaches every row of every future file at a refresh, while a formula must be filled down and kept in step. For a one-off sheet, XLOOKUP is quicker; for a recurring import, the merge wins. After every merge, Lesson 168 checks for the nulls a join can let in.

Can Power Query reshape wide data into the long format analysis needs?

Yes, in both directions, and The Complete Excel Course with AI Integration does both in one lesson. Lesson 173 takes a budget export with a column for every month and applies Unpivot Other Columns to the descriptive columns, so every month column becomes rows of YearMonth and Amount, and a month added to the export later is picked up without editing the query, because no month is named in the step. A custom column then turns each YearMonth into a real month-start date, since Power Query cannot calculate with dates held as text. The same lesson runs the move in reverse, with Pivot Column turning the metric column into separate budget sales and target units columns, and finishes with Group By on the month. Long data is what PivotTables, SUMIFS and a data model read best, so this one lesson rescues every report that was built on a grid.

Where should cleaned data land: a sheet, a connection or the Data Model?

Wherever it will be used, and only the finished output, which is the golden rule The Complete Excel Course with AI Integration teaches in Lesson 162. Close and Load can write a query to a sheet as a table, keep it as a connection only, or add it to the Data Model. Staging queries, the intermediate steps of a pipeline, stay as connections, ready for other queries to build on, because loading every stage into the grid makes a workbook slow and bloated, and the QA query is kept the same way. Only the final fact table goes further: Lesson 168 closes the Main Sales File as a connection for the model, and Lesson 169 loads it with its lookups into the Power Pivot data model, which, like the DAX lessons after it, needs Excel for Windows. Queries and Connections previews any query when you hover over it, with its last refresh shown.

Should a recurring clean-up live in Power Query, a macro or an AI prompt?

For anything that comes back on a schedule, Power Query, and The Complete Excel Course with AI Integration teaches all three tools so the choice is made with open eyes. Power Query records each transformation as a named step and replays the lot against every new file at a refresh, with nothing to maintain (Lesson 157). VBA can also loop through rows and flag problems, as the FormatWizard macros do (Lesson 147), and it suits checks and formatting a query cannot express, though code asks more of whoever inherits it. Copilot tidies a messy sheet quickly from prompts and its own suggestions (Lesson 97), which is ideal for an extract you will open once, but its output needs checking every time. Pipeline in Power Query, rule checks in VBA, one-offs with AI: an analyst who holds all three never has to force the wrong tool onto a job.

Does Power Query in Excel carry over to Power BI?

Yes: it is the same engine, and The Complete Excel Course with AI Integration names that link at the start of SalesFusion, where the Load stage of ETL is described as loading into Excel or Power BI for reports and dashboards (Lesson 154). The Power Query Editor, Applied Steps, data types, merges, appends, From Folder and Unpivot work the same way there, so a pipeline you can build in Excel is one you can rebuild in Power BI without learning the transformations again. The model side carries over too: relationships in Diagram View and DAX measures (Lesson 169 and Lesson 170, both needing Excel for Windows) are the foundations Power BI models stand on. Power BI itself is not taught; the course keeps the whole pipeline inside Excel, the tool most stakeholders already open every day.

Is there anything to download or install before the Power Query lessons?

No: Power Query is built into Excel, on the Data tab under Get Data, and The Complete Excel Course with AI Integration works with it from there, with nothing to add. The project's own files are the only download: a zipped SalesFusion dataset that unpacks into a folder of raw, deliberately messy CSV files and a folder of lookup files (Lesson 154), with a complete SalesFusion workbook among the practice files to compare against. The opening lesson's practical warning is worth carrying into your own projects: keep every source file in the same project folder, or the query connections break (Lesson 153). Power Query carries no Windows requirement in the course, so the whole path works on a Mac running Excel; only the Power Pivot data model and its DAX measures, which come after this path, need Excel for Windows.

How soon will Power Query take a chore off my week?

Inside the first hour, and every lesson after that removes another piece of manual work. The Complete Excel Course with AI Integration spends its opening lessons on a single CSV, and by Lesson 159 that file has true types, clean codes and period fields: point the same steps at the extract you rebuild every Monday and that job is finished for good. The next saving is checking, since the Group By query of Lesson 161 replaces the manual tally that confirms an extract is complete. Then comes consolidation, with the folder query of Lesson 166 turning a weekly pile of files into one table and no copying at all. Over the whole path, 1 hour 36 minutes of video, every lesson leaves you a working query to reuse. The lessons stay yours for life, and the Certificate of Completion awarded at the end carries a link an employer can use to verify it.

Why do totals come out wrong when the data looks fine, and can Power Query stop it?

Usually because numbers are stored as text, and The Complete Excel Course with AI Integration spends a whole lesson stopping it. A text column displays like a number but cannot be summed or averaged, so a report built on it looks right and calculates wrong (Lesson 158). The lesson converts money columns from Text to Decimal Number, replaces quantities typed as words before setting Whole Number, strips percent signs from discounts and builds one consistent rate. The traps keep coming in later lessons: Profit typed as Whole Number would round silently, so it is set to Decimal Number (Lesson 168); Power Query is case-sensitive, so North and NORTH would report as two regions until the codes share one case (Lesson 157); and a measure in the data model fails because SalesAmount is still text, fixed back in the query (Lesson 170, a Power Pivot lesson that needs Excel for Windows).

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.