The Complete Excel Course with AI Integration

Power Query for financial controllers

Consolidation starts with the dullest hour of the close: entity exports cleaned, mapped and stacked by hand before any figure can be reviewed. The Complete Excel Course with AI Integration turns that hour into a refresh with Power Query on SalesFusion, an industry-standard project, and this page picks out what a controller needs: an export cleaned for good, control totals, mapping merges, periods appended, a folder of entity files and an unpivoted budget.

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:

  • Replace the monthly copy and paste of system exports with a Power Query pipeline whose steps are recorded once and replayed at every refresh.
  • Clean a trial balance or ledger export inside the query: surplus columns removed, codes trimmed and set in one case, symbols and NA entries cleared from amounts, and true number and date types set.
  • Add the columns reporting needs in the query itself: year, month and year-month fields, fiscal years, calculated margins and a conditional flag on entries above a threshold.
  • Prove each period before it is reported with a Group By control query of totals and row counts, and check every merge and append for blanks.
  • Map entity codes to a group chart of accounts with merges, and choose between the join kinds Power Query offers.
  • Point a finished pipeline at next period's file, append periods into one table and combine a folder of entity files that takes in each new file on refresh.
  • Unpivot a budget or forecast grid with a column per month into a long table that lines up with actuals by period.
  • Load only the finished table and keep staging and control queries as connections, so a growing consolidation workbook stays quick.

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 exports as untidy as any entity's ledger dump: for a controller it rehearses a whole consolidation, one messy CSV first, then mapping tables, two periods and a folder of files, with a control total and a blank check wherever data joins.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    The course's budget vs actual project, and the destination for clean actuals: once a query has shaped them, a model like this one, with SUMIFS, variance and percent variance and a dashboard a director filters, carries them into the pack.

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 you work in Excel tables and PivotTables already: the path follows one consolidation from the first messy export to a folder of entity files, so take it in order. If tables and PivotTables are new, take Lesson 19 and Lesson 57 onwards first; if Excel itself is new, begin at Lesson 1. Cleaning exports in Power Query already? Begin at Lesson 163 for merges, period appends and the folder query, then the unpivot at Lesson 173.

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 The pipeline idea behind a refreshable consolidation: extract, transform and load as recorded steps, the source files kept together in one project folder, and the first export brought in through Get Data with Transform Data, so the clean-up becomes a process rather than a one-off.
  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 One export made trustworthy: surplus columns removed and the rest renamed without spaces, codes trimmed and set in capitals, symbols, commas and NA cleared from amounts, numbers and dates given true types, and period columns added, every step listed in Applied Steps.
  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 3 of 21 lessons · 16 min Rules and controls inside the query: profit and margin columns with a guard against dividing by zero, a conditional flag for large entries, duplicates removed, a Group By query of totals and row counts for each month and region, and staging queries kept as connections.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 14 min Mapping and periods: lookup tables merged in with a left outer join so no row is lost, the join kinds compared, a finished pipeline pointed at the next period's file by changing one step, and two periods appended into one table.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 22 min Consolidation from a folder: every file stacked with its file name kept on each row, the cleaning set once on a sample and applied to all, profit and fiscal year columns added, then one fact table merged with its lookups, appended to history and checked for blanks before it loads.
  1. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  2. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  3. 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 A budget export with a column per month unpivoted into rows, given real dates and grouped by month, in a query that keeps working when a reforecast adds month columns.
  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.

My close already runs on spreadsheets that work: why should a financial controller learn Power Query?

Because those spreadsheets work only while someone rebuilds them by hand every period, and Power Query takes the rebuilding away. The Complete Excel Course with AI Integration from Coding Liquids teaches it on SalesFusion, an industry-standard project designed after talking with people from many different industries, whose raw files are as untidy as any entity export: symbols inside amounts, codes with stray spaces, dates that will not read, a folder of period files and a budget with a column per month. The 17 lessons on this page, 1 hour 36 minutes in all, turn them into one clean, checked fact table that rebuilds itself at a refresh. For a controller the gain is more than hours: every step is recorded and visible, the source files stay untouched, and the same rules apply to every entity and every period, so the consolidation comes out the same way whoever runs it.

Each entity sends its own trial balance file: can Power Query stack them and still show which entity each line came from?

Yes: the folder query does both, and The Complete Excel Course with AI Integration builds it in Lesson 166. Save every entity's file in one folder, point Get Data at the folder, and Combine and Transform stacks them into one table with a Source.Name column naming the file each row came from, which in a consolidation is the entity column you would otherwise type. The cleaning is written once, in the sample file's query, and applies to every file in the folder, this month's and next month's. The lesson also switches column profiling from the first thousand rows to the entire data set, so a fault in the last entity's file shows before it hides in a total. In Lesson 168 the file-name column is dropped once its debugging job is done; a consolidation keeps it, renamed as the entity, and still checks the final table for blanks as the lesson does.

Entities use their own account codes: can a query map them to the group chart of accounts?

Yes, through a merge against a mapping table, and The Complete Excel Course with AI Integration shows the two details that make it reliable. Lesson 163 merges the sales query with product and region lookup tables on their codes, using a left outer join so every row survives and the names arrive beside it, expanded without the clutter of a prefix. Replace the product table with a table of each entity's codes against the group account and the same merge maps the whole consolidation. The first detail is case: Power Query treats North and NORTH as two different values, so Lesson 157 trims every code and puts it in capitals before any merge relies on it. The second is the blank: a new entity code nobody has mapped yet comes back with empty columns, and the blank check of Lesson 168 finds it before the consolidation balances by accident.

What control checks can I build into the queries before figures reach the pack?

Three kinds, each taught in The Complete Excel Course with AI Integration. A control total: Lesson 161 builds a reference query that groups the data by month and region with a total and a count of rows, sorted biggest first, so each period can be agreed to the source system and a figure that looks too good stands out at once. A blank check: after every merge and append, Lesson 168 filters key columns for nulls, because joins can let them in quietly. A profile: Lesson 166 switches on column quality, distribution and profile across the entire data set, showing the share of errors and empty values in each column before anything loads. The control query even explains a gap the lesson finds, null months that trace back to unreadable dates in the raw file. Together they let a controller sign off a consolidation knowing the queries checked it first.

Can a merge line up two entities' intercompany balances so the differences show?

Yes, for files that share a key, and The Complete Excel Course with AI Integration teaches the joins that do it. The left outer join of Lesson 163 keeps every row of the first table and fills in the second only where the key matches, so an intercompany balance with no partner on the other entity's file comes back with empty columns. Lesson 164 reads through the other join kinds, Right Outer, Full Outer and Inner among them, before keeping Left Outer for its own task, so you know which to choose when both sides may hold items the other lacks. The blank check of Lesson 168 then lists what did not match. The matching is the query's job and the elimination stays yours: the course teaches the Excel rather than consolidation accounting, and hands you a list of differences that rebuilds itself at every refresh.

Can the query flag entries above a threshold, or mark intercompany lines, as it loads?

Yes: conditional and custom columns write the flag into the data itself, and The Complete Excel Course with AI Integration builds four of them in Lesson 160. A conditional column marks every sale of 500 or more as High and the rest as Normal; a custom column labels any negative amount a Return; Profit and Margin are calculated in the query, with Margin left empty rather than dividing by zero. Swap the rules for your own and the same tools flag journals above a materiality threshold, lines whose counterparty code marks them as intercompany, or credits where a debit is expected. Because the logic lives in the query, it runs identically at every refresh, so no two reports built on the table can disagree about what counts as large. The same lesson removes duplicate rows by their identifier, a common result of an export saved twice.

Reforecasts keep adding month columns to the budget file: will the query break each time?

It keeps working, because The Complete Excel Course with AI Integration builds it with the one command that names no month. In Lesson 173 a wide budget export, with region, category and metric columns followed by a column per month, is reshaped with Unpivot Other Columns: you select the columns that describe each row, and every other column, however many months there are, turns into rows of period and amount. A reforecast that adds months simply adds rows at the next refresh. The lesson then clears n/a entries, builds a real month start date from the text period, splits budget sales and target units back into two columns with Pivot Column, and totals both by month with Group By, leaving a compact table that sits naturally beside actuals by period. For a controller who receives a fresh forecast grid every quarter, that is one query built once instead of a reshaping job each time.

Next month's export arrives under a new file name: do I rebuild the query?

Change one step and the whole pipeline follows, as The Complete Excel Course with AI Integration shows in Lesson 164. The lesson duplicates a finished query and, through the gear beside its Source step, points the copy at the next file, so every cleaning step, type change and merge runs on the new data without being touched. Its warning is worth keeping: audit anyway, because the new file brought nulls of its own in its date column, and rows are removed only after checking they do not matter. If the files keep their layout and land in one place, the folder query of Lesson 166 goes one better, with nothing to change at all, since the next file is picked up at the next refresh. For a controller, that choice decides whether month end begins with a click or with an afternoon of repairs.

Which work belongs in a query and which in a DAX measure when a controller builds the consolidation?

Cleaning, mapping and combining belong in a query, and the figures a report calculates belong in DAX measures; The Complete Excel Course with AI Integration teaches them in that order. Power Query prepares the data: it cleans, maps, appends and combines until one trustworthy fact table exists, which is everything on this page. The data model then relates that table to its lookups in Power Pivot (Lesson 169), and DAX measures such as total sales, margin percent and percent of total calculate on top of it (Lesson 170), recalculating for every slicer and filter; those Power Pivot lessons need Excel for Windows. The course's own summary of the split makes a good rule for a controller: Power Query makes data usable, the data model makes it useful. A figure that is wrong because the data is dirty belongs in a query, and a figure that depends on the filter a reader picks belongs in a measure.

I write a little SQL: how much of it carries over to Power Query?

Nearly all of the thinking, because Power Query does the same kinds of work as SQL through menus rather than typed statements, and The Complete Excel Course with AI Integration teaches it without a line of SQL. A merge is a join, with the join kind chosen from a list (Lesson 163); an append stacks one table on another (Lesson 165); Group By totals and counts by the columns you pick (Lesson 161); a filter keeps the rows that meet a condition. Each click is recorded as a step in Power Query's own formula language, M, which you meet directly only in a few custom columns, such as the discount rate of Lesson 158 or the month labels of Lesson 159. A controller who knows some SQL will recognise every idea and move faster for it, and one who has never written a query loses nothing, because the menus do the writing.

Will the consolidation workbook stay fast as the periods pile up?

It will if it follows the habits The Complete Excel Course with AI Integration builds in from the start. Lesson 156 removes unwanted columns first, because every later step then has less data to carry. Lesson 159 sets dates as Date rather than Date and Time, which drops the time, saves memory and keeps relationships cleaner. Lesson 162 gives the golden rule: load only the finished table into a sheet and keep staging and control queries as connections, or the workbook grows slow and bloated. And Lesson 168 removes the file-name column once it has done its job, since unneeded columns bite back as a model grows. For a controller adding a month of entity files every period, those choices separate a consolidation that refreshes in moments from one that people start avoiding.

Someone else on my team will press refresh: can they follow what each query does?

Yes, when the queries are built the way The Complete Excel Course with AI Integration builds them. Every step is listed in Applied Steps in the order it runs, and Lesson 156 renames steps so the list reads as a description of the work rather than a string of defaults. Queries get names that say their job, such as a staging query and a separate QA query in Lesson 161, and the Queries and Connections pane of Lesson 162 shows each query's rows and when it last refreshed with a simple hover. One rule from Lesson 153 protects the handover above all: keep every source file in the project folder, because a moved file breaks the connection. With that in place, the person pressing refresh needs to know only where to save the new export, and the queries do the rest exactly as you built them.

Our systems export CSV but the bank sends PDFs: what can Power Query read?

Far more than CSV, and The Complete Excel Course with AI Integration shows the range before it settles on the format finance systems produce most. Lesson 154 walks through Get Data's sources, CSV, JSON, XML and PDF among them, and explains the extract, transform and load sequence that applies whatever the source. The project itself works on CSV exports: Lesson 155 brings one in through From Text/CSV and opens it with Transform Data instead of Load, the choice that makes a repeatable pipeline rather than a one-time paste, and Lesson 166 reads a whole folder of them. Pulling tables out of a bank's PDF is not taught step by step; once any source is in the editor, though, every cleaning, mapping and checking step on this page applies to it exactly as it does to a CSV.

How soon will the first entity's export clean itself at a refresh?

By Lesson 159, well under half of the way through the path's 1 hour 36 minutes: one export goes from raw CSV to typed, trimmed and dated columns that rebuild at every refresh. The Complete Excel Course with AI Integration then adds the controls and rules (Lesson 160 to Lesson 162), the merges and period appends, and by Lesson 166 a folder of files has become one query, which is the consolidation step most controllers want first. The SalesFusion dataset and the finished workbook come with the course, so each query can be compared with a working answer, and lifetime access keeps the lessons at hand for the next export with a layout of its own. The Certificate of Completion that ends the course carries a verification link for any employer who asks to see 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.