The Complete Excel Course with AI Integration
Power Query for FP&A analysts
An FP&A month begins with exports nobody designed for analysis: actuals by cost centre, last year's file, a budget template with a column per month. Cleaning and combining them by hand eats days meant for variances. The Complete Excel Course with AI Integration hands that work to Power Query on SalesFusion, an industry-standard project, and this page picks out the lessons in the order a reporting month needs them: one export, a folder, a mapping, a budget grid.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Import a monthly ERP or ledger export through Get Data and turn it into a clean table of true numbers, dates and codes, replayed at every refresh.
- Strip the money symbol, NA entries, stray spaces and mixed case out of actuals, and fix the data types that make totals come out wrong.
- Combine a folder of monthly or entity files into one table that takes in next month's file on refresh, each row tagged with the file it came from.
- Map cost centres, products or regions to their reporting names with a left outer merge, and restate history by editing one mapping table.
- Prove each month's actuals with a Group By query of totals and row counts before they feed the model.
- Set this year beside last year by duplicating a pipeline for the new file and appending the two into one timeline with fiscal year columns.
- Unpivot a month-per-column budget into dated rows, ready to sit beside actuals in a budget vs actual report.
- Load working queries as connections or to the Data Model so the workbook stays light, with profit and margin built once inside the query.
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.
From zipped CSV exports to one proven fact table: cleaning, mapping merges, a second year appended, a folder of period files combined and a budget grid unpivoted, every step recorded so next month's refresh repeats it exactly.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Where clean actuals are headed: two named tables set side by side with SUMIFS, variance and percent variance on every line, and a dashboard of KPI cards and slicers that a finance director filters by month and department.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
XLOOKUP, VLOOKUP and INDEX MATCH on the worksheet: the lookups an FP&A analyst writes today, and the logic a Power Query merge then applies to every row of every future export 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 at Lesson 153 if your week already involves Excel tables, SUMIFS and PivotTables: SalesFusion starts from a zipped set of messy CSV exports and builds up to a folder query, the path a reporting month follows. Tables and PivotTables still unfamiliar? Lesson 19 and Lesson 57 cover them, and Lesson 1 is the place for anyone new to Excel. If you clean exports in Power Query already, skip ahead to Lesson 163 for merges, appends and folders, and finish with budget grids at Lesson 173.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The pipeline idea and the first import: SalesFusion's goal, a report that refreshes from messy files, then ETL explained as steps recorded once and replayed every time, and a CSV brought in through Get Data and opened with Transform Data, so the export stays a source instead of a copy pasted into the sheet.
- 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 Making an export trustworthy: columns removed and renamed with every step logged, codes trimmed and set in one case, the money symbol, NA entries and stray hyphens stripped from amounts, true types for amounts, quantities and discounts, a clean date with year, month and year-month fields, and profit, margin, value and return columns built inside the query.
- 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
- 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
15 SalesFusion: advanced data tools and a Power Query modelling system Control before load: a Group By query of totals and row counts by month and region to tie back to the source, and the load choices, table, connection only or Data Model, with the rule that only the finished output reaches the grid.
- 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 Mapping and comparatives: lookup tables merged onto codes with a left outer join, a finished pipeline duplicated for the next year's file by changing one step, and the two years appended into one timeline for year-on-year reporting.
- 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 Monthly consolidation: every file in a folder combined and cleaned by one sample-file transform, the folder query extended with profit metrics and fiscal year columns, and a fact table built from lookups and history, checked for blanks and kept as a connection.
- 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 Budget grids: a wide export with a column per month unpivoted into rows, each month header turned into a real date, budget and target split back into columns and totalled by month, in a query that survives new month columns.
- 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.
Power Query for FP&A analysts: how much of the monthly data work can it take over?
Most of the preparation, and The Complete Excel Course with AI Integration from Coding Liquids teaches all of it on SalesFusion, an industry-standard project designed after talking with people from many different industries. An FP&A month starts with raw exports and ends with a model; in between sits the work Power Query absorbs: importing and cleaning each export (Lesson 155 to Lesson 159), adding the business rules and period fields reports need (Lesson 160), proving the totals with a Group By query (Lesson 161), mapping codes to names with a merge (Lesson 163), stacking years and whole folders of files (Lesson 165, Lesson 166) and turning a month-per-column budget into rows (Lesson 173). Each step is recorded once and replayed at every refresh. This page picks out the 17 lessons that do it, 1 hour 36 minutes in all; the judgement on the numbers, and the forecast itself, stay yours.
How do the budget template and the monthly actuals end up in one budget vs actual report?
Through two queries and one reporting layout, and The Complete Excel Course with AI Integration teaches each part. The budget side starts as a wide export with a column per month: Lesson 173 unpivots it into rows, gives every row a true month-start date and totals budget and target by month, leaving a compact table built for the data model. The actuals side is the folder query of Lesson 166 and Lesson 167, which combines each month's file, cleans it with the same steps and adds year, month and fiscal year fields, and Lesson 168 finishes it as one fact table held as a connection. With both on monthly keys, the comparison is a layout choice: SUMIFS against each table, the method FinanceGuard uses for its budget vs actual model (Lesson 117), or PivotTables over a data model of the kind SalesFusion's Power Pivot lessons build, which need Excel for Windows.
Every month a new actuals file lands in the folder: what does the refresh actually do?
It reruns every recorded step on every file in the folder, the new one included. Lesson 166 of The Complete Excel Course with AI Integration builds the folder query: Get Data from a folder, Combine and Transform, and a Source.Name column that records which file each row came from, so a month or an entity stays traceable after the stack. The cleaning sits in the Transform Sample File, where the renames, trimming, case and type fixes of the earlier lessons are set once and apply to every file, those already there and those saved later. Lesson 167 adds the rest of the logic, discount rates, date fields, profit, margin, high-value and return flags and fiscal year columns, and Lesson 168 merges the lookups and appends history into one fact table. So the monthly routine shrinks to saving the export into the folder and pressing refresh, then reading the QA totals before the numbers move on.
Can Power Query map cost centres to departments, and re-map history after a reorganisation?
Yes: a mapping table merged into the query does the mapping, and changing that table re-maps every month at the next refresh. The Complete Excel Course with AI Integration teaches the merge in Lesson 163: the sales query is merged with product and region lookup tables on their codes, using a left outer join, so every sales row is kept and the names arrive beside it. Lesson 164 reads through the other join kinds before keeping that one, and Lesson 168 checks the merged table for blanks, the sign of a code the lookup does not know. Swap the product table for a mapping of cost centres to departments and divisions and the same steps map your actuals. After a reorganisation, edit the mapping table rather than the history: at the refresh, every past month is restated under the new structure, which is exactly what a like-for-like comparison needs.
Our ERP export has text in the amount columns and codes in mixed case: what can a query repair?
Most of what an export gets wrong, and every fix stays fixed for next month. In The Complete Excel Course with AI Integration, Lesson 157 trims codes and sets them in upper case, which matters because Power Query is case-sensitive and would read North and NORTH as two regions, then clears the money symbol, commas, NA entries and hyphens out of the amount columns, and tells genuine errors, which Replace Errors catches, from cells holding the word error, which need Replace Values. Lesson 158 makes the amounts true decimals, turns quantities written as words into numbers and puts discounts typed two ways on one scale, because a column held as text looks fine and sums wrong. Lesson 168 adds a trap worth knowing: a whole number type would round profit silently. The SalesFusion files arrive with all of these faults, so you practise on the mess a system export really produces.
How do I prove the actuals in my query agree with the ledger before they reach the model?
With a Group By query that totals the data and counts its rows, the control the course builds before anything is reported. In Lesson 161 of The Complete Excel Course with AI Integration, a reference to the staging query is grouped by year-month and region, with total sales and a row count for each, and sorted with the biggest totals first, so a figure that looks too good, one region outselling everyone else put together, stands out at once as a likely typo. Because it is a reference, it stays wired to the staging query and every later change flows through. Rows with no month expose unreadable dates in the raw file. Set those totals beside the ledger's own report for the same months, and the actuals are proved before the model sees them. Lesson 168 repeats the habit after merges and appends, checking key columns for blanks, so nothing slips in on the way to the fact table.
Last year's actuals and this year's arrive as separate files: can one query set them side by side?
Yes: duplicate the pipeline for the new file, then append the two into one timeline. In The Complete Excel Course with AI Integration, Lesson 164 duplicates a finished staging query and changes only its Source step to point at the next year's file, so the second year passes through every cleaning step of the first, with the lesson's reminder to audit anyway, since the new file brings blanks of its own. Lesson 165 appends the two years as a new query, leaving both sources untouched so a fault can be traced back, and matching columns by their headers. With both years in one table, a PivotTable puts this year beside last year by month, and the fiscal year columns added in Lesson 167 let the comparison follow your financial year rather than the calendar. Next year is one more duplicate and one more append, not a rebuild.
Should the cleaned actuals be loaded to a sheet, kept as a connection or sent to the Data Model?
Keep the working queries as connections and load only the finished table, the golden rule The Complete Excel Course with AI Integration teaches in Lesson 162. Close and Load writes a query to a sheet by default; Load To offers the alternatives, a table, a connection only or the Data Model, and the lesson turns its staging and QA queries into connections, deletes their sheets and keeps them ready in memory for a PivotTable or a model. Loading every intermediate step into the grid is what makes a reporting workbook slow and bloated. Lesson 168 applies the rule to the finished fact table, held as a connection for the data model, and the Power Pivot lessons that follow load it into the Data Model, on Excel for Windows. For an FP&A workbook that means a clean front end: report sheets on top, queries running quietly underneath.
Margin and profit: should they be built in Power Query or as DAX measures?
Both, for different jobs, and The Complete Excel Course with AI Integration builds margin in each place so you can see why. In Power Query, Lesson 160 adds Profit and Margin as custom columns on every row, with a null where sales are empty or zero so nothing divides by zero, and the logic runs identically at every refresh. In Power Pivot, Lesson 170 writes Total Profit and Margin Percentage as DAX measures with DIVIDE, along with percent of total, and measures recalculate for whatever a filter or slicer selects. The distinction matters in a pack: a row's margin belongs to the row, but the margin of a region or a quarter has to be total profit over total sales, which an average of row margins does not give, and that is what a measure works out on the fly. Shape rows in the query, aggregate in DAX. The DAX lessons need Excel for Windows.
Is Power Query basically SQL, and does an analyst who knows SQL have a head start?
It is a different tool that thinks the same way, so SQL experience carries straight over. Power Query is menu-driven: in The Complete Excel Course with AI Integration, nearly every step from importing a CSV (Lesson 155) to combining a folder (Lesson 166) is a click that the editor records in Applied Steps. The concepts map neatly: a merge is a join, and Lesson 163 uses a left outer join, with the other join kinds read through in Lesson 164; Group By totals and counts by keys (Lesson 161); an append is a union; filters do the work of a WHERE clause. The steps are written in Power Query's own language, M, and the custom columns you type, such as the discount rate in Lesson 158, are short M formulas. The lessons connect to files rather than databases, and an analyst who writes SQL will find the editor's logic familiar from the first lesson.
Copilot cleans data too: why put the monthly actuals through Power Query instead?
Because a query does the same thing every month and a prompt does not, and The Complete Excel Course with AI Integration teaches both so you can choose. Copilot is quick on the file in front of you: Lesson 97 has it strip stray spaces and settle inconsistent names on a messy sheet, and draft a cleaning plan. Its answer is a one-off, though, and the course's own checklist (Lesson 99) has you verify each result. Power Query records each clean-up as a named step and replays it identically at every refresh, which Lesson 160 puts plainly: logic built in the query runs the same every time, so no two reports disagree. For actuals that feed a forecast and a board pack, that sameness is the point. Use Copilot, ChatGPT or Claude to plan, explore and explain; let Power Query own the recurring pipeline.
When I am on leave, can a colleague run the month's refresh without me?
Yes, if the query is built the way the course builds it. Every step in The Complete Excel Course with AI Integration is recorded in Applied Steps, and Lesson 156 shows how to rename steps so the list reads like documentation; the source files stay together in one project folder, which Lesson 153 warns is what keeps connections from breaking. With the folder query of Lesson 166, the colleague's whole task is to save the month's export into the folder and refresh. The QA query of Lesson 161 then gives them totals and row counts to check against the ledger, so they can confirm the refresh worked without understanding every step. Compare that with a month-end routine held in one person's head and a sequence of copy, paste and delete: a query is a process the team owns, and holiday cover stops being a risk.
Our finance team mixes Macs and Windows laptops: who can build the queries and who can build the model?
Everyone can build the queries; the data model needs Windows. The requirements of The Complete Excel Course with AI Integration name Windows for two tools only, Power Pivot and Power Automate, and none of their lessons is on this page, so no Power Query lesson here, from the first CSV import to the unpivoted budget, is held to Windows; Power Query sits under Get Data on the Data tab. The step after it is different: SalesFusion's data model lessons, relationships in Lesson 169 and DAX measures in Lesson 170, need Excel for Windows. A mixed team therefore splits naturally: anyone prepares and refreshes the clean tables, and a Windows user owns the model and its measures. FinanceGuard's budget vs actual model, built with formulas, PivotTables and slicers, works on either kind of laptop, so the report itself is never out of anyone's reach.
How long is the Power Query path, and at which point does it start saving reporting time?
About 1 hour 36 minutes for the 17 lessons on this page, and the saving starts long before the last of them. In The Complete Excel Course with AI Integration, one export is fully cleaned, typed and dated by Lesson 159: rebuild those steps on your own actuals file and that clean-up is never done by hand again. The Group By control and the load choices follow, and by Lesson 166 a folder of monthly files has become a single query that takes in next month at a refresh, which is where the monthly hours come back. The SalesFusion dataset of messy CSV files comes with the course, along with a complete workbook to check every step against. The lessons stay yours for life, ready for the day a system change alters the export, and the Certificate of Completion at the end carries a link any employer can use to verify 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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Excel formulas for FP&A analysts
- Lookups for FP&A analysts
- PivotTables for FP&A analysts
- Charts for FP&A analysts
- Dashboards for FP&A analysts
- Conditional formatting for FP&A analysts
- Data cleaning for FP&A analysts
- Data validation for FP&A analysts
- Excel tables for FP&A analysts
- Text functions for FP&A analysts
- Date functions for FP&A analysts
- Dynamic arrays for FP&A analysts
- Power Pivot and DAX for FP&A analysts
- Macros and VBA for FP&A analysts
- Power Automate for FP&A analysts
- Copilot in Excel for FP&A analysts
- ChatGPT for Excel for FP&A analysts
- Claude in Excel for FP&A analysts