The Complete Excel Course with AI Integration
Power Query for PMO analysts
Each month the PMO receives a folder of returns, a spend export from finance and forecasts spread a column per month, and the same tidying starts all over again. The Complete Excel Course with AI Integration teaches Power Query for exactly this, with SalesFusion as the industry-standard project: queries that clean, combine, reshape and summarise once, then rerun at a refresh. The path goes from one imported file to a whole folder, a fact table and Unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Stack every return saved in the PMO's folder through one query whose clean-up, written against a single example file, reaches each new arrival at a refresh.
- Turn forecasts that spread months across columns into rows of project, month and amount, however many months each project's file holds.
- Pivot baseline and forecast rows back into columns after the unpivot, so each project and month carries both figures on one line.
- Group timesheet and spend detail into one row per project and month before it reaches a PivotTable, with a row count that exposes missing lines.
- Flag reversals and unusually large spend lines with conditional columns, and keep stray note rows and empty codes out of the portfolio table.
- Build the portfolio table in a deliberate order, staging and checking each source before merges and appends, so only the finished table reaches a sheet.
- Keep the pipeline working when the folder moves or a return's columns change order, by re-pointing its source and relying on headers rather than positions.
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 from messy sales exports, it rehearses the PMO's monthly consolidation end to end: faulty CSVs cleaned, codes merged with lookup tables, years appended, a folder stacked, a grid unpivoted and one fact table produced.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Built for budget against actual, it shows where a clean spend table goes next: two tables compared by key through SUMIFS, with variance and percent variance worked out on every row, and a dashboard the board can filter.
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 Excel tables and PivotTables are already part of your week: SalesFusion opens there and follows the order of a monthly consolidation. Still finding your feet? Lesson 19 on tables and Lesson 57 on PivotTables come first, and complete beginners start the course at Lesson 1. Already shaping exports with Power Query? Skip to Lesson 163, the point where joining, stacking and whole folders take over.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system Extracting and cleaning SalesFusion's faulty CSV exports: steps recorded once that replay on every new file, a file brought in through Transform Data instead of pasted, surplus columns dropped and headers renamed, codes trimmed and put in capitals, symbols, NA entries and numbers written as words cleared from figure columns, proper number and date types, then year, month and month-start columns so every row knows its period.
- 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
- 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 Business rules and proof without leaving Power Query: profit, margin, a high-value marker and negative amounts labelled as returns, each added as a column; a grouped copy of the data with totals and row counts per month and region to test it; then the loading choice that leaves working queries in the background and puts only finished ones on a sheet.
- 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 for the portfolio: a left outer merge that brings product and region details onto each sale with no row lost, a finished pipeline pointed at the following year's file with its merges made again, the two years appended, all the files in one folder stacked through a sample file, profit and fiscal-year columns added to that folder query, and one fact table assembled from the lookups and the history, whose key and amount columns are then searched for empty values.
- 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
- 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 Unpivot for column-per-month files: a wide budget and target export turned into rows of month and amount with Unpivot Other Columns, which names no month and so survives new ones, the month text made into a real date, then the metric column pivoted back into budget and target columns and totalled by month.
- 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 PMO analysts: can every project's return, finance's spend export and the monthly forecasts become one portfolio table that refreshes itself?
Yes, and The Complete Excel Course with AI Integration from Coding Liquids builds that whole pipeline in SalesFusion, its industry-standard project designed after talking with people from many different industries. SalesFusion begins with the same kind of mess a PMO receives: exports whose figure columns hold text, separate code lists, files dropped into a folder over time and a sheet that spreads months across columns. You clean a file with steps that run again at each refresh (Lesson 155 to Lesson 159), bring lookup details beside every row with a merge (Lesson 163), stack a whole folder through one sample file (Lesson 166), assemble a single fact table (Lesson 168) and unpivot the month-per-column sheet (Lesson 173). For the PMO those become returns from every project, spend from finance and forecasts from project managers, joined into one table for the PivotTables and the pack. What stays yours is the judgement: the ratings, the commentary and every conversation with a project manager. The 17 lessons on this path take 1 hour 36 minutes; only the lessons on Power Automate and on Power Pivot need Windows, and none of those is among them.
Each project's forecast runs to its own end date, so the month columns differ from file to file: can one query unpivot them all?
Yes, because Unpivot Other Columns never names a month, and The Complete Excel Course with AI Integration teaches it in Lesson 173. In that lesson a budget export laid out a column per month is reshaped by selecting the columns that describe each row, region, category and metric, and unpivoting everything else, so whatever months a file holds become rows; the lesson's quiz makes the point that a new month column cannot break the query. Inside a folder query the same step sits in the sample file's transformation, which Lesson 166 runs on each file the folder holds, so a short project's forecast and a long one's pass through one set of steps. Lesson 173 then turns the month text into a real date with a first-of-month value, so the stacked forecasts sort and total by period. The result is one long table of project, month and amount, the shape PivotTables, SUMIFS and a budget against actual comparison read most easily, rebuilt whenever project managers send a revised forecast.
Our forecast file stacks baseline and forecast as separate rows under each month: can the query set them side by side?
Yes: Pivot Column, applied to the unpivoted table, turns the metric rows back into columns, the move The Complete Excel Course with AI Integration makes in Lesson 173. The lesson's export holds two metrics as rows, a sales budget and a units target; once the months are unpivoted, Pivot Column on the metric column, with the amount as its values and summed, gives each month one row carrying both metrics as separate columns. For a PMO the metrics are baseline and forecast, so each project and month ends up with both figures on one line, and a custom column can subtract one from the other, the kind of column Lesson 160 adds for profit. Group By on the month then totals the portfolio, as the lesson does with its two metrics. The comparison a board asks for, forecast against baseline month by month, comes out of the query ready to chart, and it rebuilds itself when project managers revise their numbers.
Timesheet exports run to thousands of rows: can the query hand the PivotTables hours by project and month instead?
Yes: Group By does the summarising inside the query, and The Complete Excel Course with AI Integration teaches it in Lesson 161. There a reference query groups the cleaned sales by year-month and region, adds a total and a count of rows for each group, then sorts the biggest totals to the top. Swap region for project code and sales for hours booked, and the query returns one row per project per month. The year-month column it groups on comes from Lesson 159, which builds year, month and month-start columns from a clean date. Load only that summary to a sheet and keep the detailed query as a connection (Lesson 162), and the workbook stays light however many lines the timesheet system sends. The row count earns its place too: a project whose count drops to a handful in a busy month has probably lost lines somewhere between the source system and the export, and the summary shows it before the pack does.
Project managers save drafts and finals into the same shared folder: how do I keep the folder query reading only the right files?
Treat the folder as part of the system, because a folder query combines every file it finds, a point The Complete Excel Course with AI Integration makes clear in Lesson 166: a draft saved beside the final is stacked as faithfully as the final itself. Two habits follow. Keep one folder for finals only, with drafts saved elsewhere by agreement with the project managers, and a naming rule that says which project and month each file holds. Then use the Source.Name column the folder query adds, which records the source file of every row, to spot a project appearing twice in a month before the pack is built; a Group By count of rows per file (Lesson 161) makes a doubled return stand out at once. Power Query can also filter its own list of files by name, a general feature beyond the lessons, for a folder that cannot be kept clean. With those habits in place, a refresh reads the month's finals and nothing else, every time.
Some project managers type notes below the table in their return: will those rows land in the portfolio table?
A filter in the query keeps them out, and The Complete Excel Course with AI Integration teaches the checks that find them. A folder query stacks every row of every file (Lesson 166), so a note typed beneath a project manager's table arrives as a row with text in the first column and empty values elsewhere. SalesFusion meets the same kind of debris: Lesson 164 unticks null in the date filter of the new year's data, and Lesson 168 checks the key column of the finished table for empty values and filters them out of the amount and year columns. For returns, filter out rows whose project code is empty, and set a data type on the code and amount columns (Lesson 158) so a stray sentence in an amount column shows up as an error to catch rather than slipping through. Agree a rule with project managers as well: notes belong in a comments column, never under the table. After that, the portfolio table holds projects and nothing else.
Our PMO runs only a handful of projects: is Power Query worth learning at that size?
Yes, because its value comes from repetition rather than volume, and The Complete Excel Course with AI Integration shows why in Lesson 154. That lesson sets out the idea behind every query: extract, transform and load as saved steps that repeat on every fresh file. A handful of projects still means a monthly cycle, the same returns, the same clean-up of codes and dates, the same stacking, twelve times a year, and each cycle done by hand is a chance for a pasted row to land in the wrong place. With a query the cycle becomes a refresh, and the steps sit in Applied Steps for anyone who takes over (Lesson 156). A small portfolio is also the easiest place to start: fewer files to test against and every step quick to check against the source. When the portfolio grows, the query grows with it, because a folder query takes in a new project's return without being rewritten (Lesson 166).
Returns, finance's actuals and the register all feed one portfolio table: which query should be built first?
The cleaning queries, one per source, in the order The Complete Excel Course with AI Integration lays out in Lesson 154: extract, clean, then combine, then report. Start with a staging query for each source, each cleaned on its own: columns removed and renamed, codes trimmed and put in capitals, types fixed (Lesson 156 to Lesson 158). Power Query compares text letter for letter, capitals included, so codes set in one case before any join is what lets them match. Add a QA query that references the staging query and totals it by month, the pattern Lesson 161 uses, so each source is proved before it is joined. Then bring the register in as a lookup with a merge on the project code (Lesson 163), and stack periods or folders into one fact table at the end (Lesson 168). Keep every intermediate query as a connection (Lesson 162) and let just the finished table reach a sheet. Built that way, a fault found in the pack traces back to one source and one step.
Finance's export carries credits and reversals as negative lines: can the query flag them before they shrink a project's spend?
Yes: a conditional test marks every negative line, and The Complete Excel Course with AI Integration builds exactly that column in Lesson 160. SalesFusion's IsReturn column tests each sale amount and writes Return for a negative value and Sale otherwise, so refunds can be counted, filtered or kept apart instead of quietly netting off. For a PMO, the same test on finance's amount column marks credits, reversals and corrections, and a PivotTable can then show each project's gross spend, its reversals and its net figure separately. That matters at a board: a project whose spend fell this month because a large charge was reversed tells a different story from one that simply spent less. The same lesson adds a HighValue column through a conditional column with a threshold of your choosing, which suits flagging spend lines large enough to deserve a second look. Both flags live in the query, so every refresh applies them to every new line without a formula filled down.
Some programmes report weekly and the pack is monthly: can the query roll the weeks up into months?
Yes: give every row its month inside the query, then group by it, two steps The Complete Excel Course with AI Integration teaches on SalesFusion. Lesson 159 turns a clean date into year, month name, month number, month start and year-month columns, so each weekly line carries the month its date falls in. Lesson 161 then groups by that year-month column and sums the amounts, returning one row per programme per month. Because the month number travels with the name, months sort in calendar order instead of alphabetically, the warning Lesson 159 itself gives. A week that straddles a month end follows the date written on its row, so agree with the programmes which date a weekly return carries, its first day or its last, and the monthly totals stay consistent from one pack to the next. Weekly and monthly programmes can then be appended into one table (Lesson 165) and reported side by side.
A few project managers drag the return's columns into their own order: will the combined table still line up?
Power Query lines columns up by their headers, not their positions, so a reordered return stacks correctly; The Complete Excel Course with AI Integration states the rule in Lesson 165. That lesson's append of two years of sales relies on matching column headers, and the same holds when a folder query combines files (Lesson 166). What breaks the stack is a changed header: a column renamed from Forecast to Fcst arrives as a separate column, half empty, which is why SalesFusion renames every header in one agreed style early on (Lesson 156) and why the folder's sample-file steps carry those renames to every file. For the PMO, the protection is a template whose headers project managers cannot edit, the sheet protection taught on TaskFlow (Lesson 86), plus a look at the combined table's column list after each refresh. Order can vary freely; names are the contract between the template and the query.
The shared drive is being reorganised and the returns folder will move: will the queries survive?
Re-point one setting and they carry on, the move The Complete Excel Course with AI Integration teaches in Lesson 164. There a finished query is duplicated and its Source step, opened through the gear icon beside it, is pointed at a new file; every later step then runs on the new source unchanged. A folder query has the same Source step, holding the folder's path, so a moved folder means one edit, not a rebuild. Lesson 153 explains why it matters: keep every source in the project's folder, or the connections break and a refresh fails until the path is right again. After the move, Queries and Connections on the Data tab lists every query with its last refresh (Lesson 162), so you can refresh each one and confirm that rows still arrive. Agree the new location with IT and the project managers before the move, and the first pack afterwards runs exactly as the last one did.
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 PMO analysts
- XLOOKUP and VLOOKUP for PMO analysts
- Pivot tables for PMO analysts
- Excel charts for PMO analysts
- Excel dashboards for PMO analysts
- Conditional formatting for PMO analysts
- Data cleaning for PMO analysts
- Data validation for PMO analysts
- Excel tables for PMO analysts
- Text functions for PMO analysts
- Date functions for PMO analysts
- Dynamic arrays for PMO analysts
- Power Pivot and DAX for PMO analysts
- Macros and VBA for PMO analysts
- Power Automate for PMO analysts
- Copilot in Excel for PMO analysts
- ChatGPT for Excel for PMO analysts
- Claude in Excel for PMO analysts