The Complete Excel Course with AI Integration
Power Query for document controllers
Register exports, contractor transmittals and client document lists arrive with the same faults every time, and fixing them by hand eats a document controller's week. In The Complete Excel Course with AI Integration, Power Query takes the fixes over: each saved as a step, rerun on the next file and open to inspection. The lessons gathered here build it on SalesFusion, one of the course's industry-standard projects, from the first CSV import to a folder of incoming files.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring a register export into Power Query from its CSV file and keep every clean-up step in Applied Steps, so the next export is cleaned by a refresh.
- Trim status, discipline and originator codes and put them in one case, so Power Query never treats IFR and ifr as two different statuses.
- Give revision numbers, sheet counts and dates proper data types, and add month number and month name columns so monthly summaries sort in calendar order.
- Map each status code to Open or Closed with a conditional column, and count documents by discipline and month with Group By as a standing check on the export.
- Merge discipline names and originator companies into every row from your code lists, and point a copied query at a new project's export with its merges made again.
- Combine every contractor transmittal file saved to a folder into one incoming log, with Source.Name showing which file each row arrived in.
- Unpivot a submission programme laid out month by month across the page into rows of discipline, month and planned count.
- Load only the finished register to a sheet, keep the working and checking queries as connections, and repair a query that stops.
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 as a sales reporting system on raw CSV files, it is where a document controller rehearses the whole register routine on data that fights back: wrong types, codes in mixed case, lookup files to merge, files landing in a folder and a grid to reshape, with every fix kept where the next refresh will find it.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it shows where a cleaned register goes next: PivotTables that summarise it by any field, dates grouped by month, slicers for the weekly meeting, and Refresh All, which updates every PivotTable in the workbook 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
Already keeping registers as Excel Tables and reading PivotTables? Begin SalesFusion at Lesson 153 and take its Power Query lessons in order, since each query builds on the one before. Tables and PivotTables not yet familiar? Build them in Lesson 19 and from Lesson 57 before the project. Never opened Excel at all? The first lesson, Lesson 1, starts from the window itself. Writing queries already? Jump to Lesson 163 for merges, reused pipelines and the folder query.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system Where SalesFusion starts: the finished report shown as the goal, ETL explained as steps recorded once and run on every new file, then a messy CSV imported from the Data tab and opened for transforming, the same first move a register export needs.
- 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 The clean-up an EDMS export needs, practised on deliberately faulty sales files: temporary columns removed and headers renamed, codes trimmed and set in one case, symbols and placeholders replaced, numbers and dates given proper types, and year and month fields added for monthly reporting.
- 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 Rules written once: conditional and custom columns labelling every row, a Group By reference query that totals and counts by month and region as a quality check, and the load choice between a sheet, a background connection and the Data Model.
- 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 and stacking: lookup files merged in with Left Outer so no row goes missing, the whole pipeline copied onto the next year's file with its merges made again, and a second year stacked under the first in a single query.
- 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 A folder of files combined in one query, every file cleaned by the steps set on a sample, calculated columns added across the lot, then one master table assembled from the lookups and the history and checked for empty values.
- 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 A budget export with one column per month unpivoted into a long table, its month text made into real dates and its figures grouped by month, the reshaping a submission programme laid out across the page calls for.
- 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 keeps a record of every step it takes: what can that do for a document controller's register?
It turns the register's weekly clean-up into a routine that reruns itself and can be inspected step by step, and The Complete Excel Course with AI Integration from Coding Liquids builds that routine into SalesFusion, one of its industry-standard projects, each designed after talking with people from many different industries. The steps sit in order in Applied Steps (Lesson 156), each replayed on the next export at a refresh, while the export the query reads is left untouched. The path goes on to combine a folder of incoming files (Lesson 166), merge in names from code lists (Lesson 163) and reshape a grid laid out month by month across the page (Lesson 173). Every exercise uses messy sales CSVs, and each method carries over to an EDMS export, a contractor's transmittal or a client's document list. In 17 lessons and 1 hour 36 minutes, the register's clean-up stops being a weekly chore.
Can Power Query fold a folder of contractor transmittal files into one incoming log?
Yes: one folder query stacks them all, and The Complete Excel Course with AI Integration sets it up in Lesson 166. From Folder combines every file saved in a folder into a single table, and a Source.Name column carries the name of the file behind every row, so the contractor and the transmittal can still be read off every line. The cleaning steps are defined once in Transform Sample File and run on every file, those in the folder now and those saved next week, which are picked up at the next refresh. Lesson 167 adds calculated columns across the combined data, and Lesson 168 assembles the finished table and checks it for empty values. The files must share one layout, as a contractor's standard transmittal form usually does: agree the template once and the log rebuilds itself from the folder.
A new project starts on the same document management system: can last project's queries be reused?
Yes: copy the query and point it at the new export, the move The Complete Excel Course with AI Integration makes in Lesson 164. There a finished cleaning query is duplicated, and changing only its Source step, through the gear icon beside it, aims every saved step at the following year's file. Two points from the lesson matter on a new project. The merges that brought in names from lookup files do not travel with the copy, so the lesson makes them again on a reference to the new query; and the new file brings surprises of its own, such as empty dates, so the result is audited before any rows are dropped. For a document controller that means a new project's register is cleaned by the last project's logic from day one, with the new code lists merged in afresh.
An originator missing from our code list must not slip through: can a query add names from the lists and show what failed to match?
Yes: a merge adds the names to every row and leaves a blank wherever a code is missing from the list, and The Complete Excel Course with AI Integration teaches it in Lesson 163. The lesson imports two lookup files, products and regions, and merges each into the sales query on its code, with Left Outer as the join kind so that no sales row is lost when a code finds no match, then expands the matched columns without a prefix. On a register the lookup files become your code lists: discipline codes with their names, originator codes with company names, status codes with their meanings. Because the merge is a saved step, next week's export receives the names at refresh with nothing filled down by hand. Lesson 168 closes with the habit that protects the report: after merging, look for empty values in the merged columns, which is exactly where an originator missing from the code list shows up.
COUNTIFS saw one status where Power Query now sees two, IFR and ifr: why does the query split them?
Because Power Query compares text exactly, capitals included, and The Complete Excel Course with AI Integration makes the fix one of the first steps of the clean-up. Lesson 157 says so outright: in Power Query, North and NORTH would be two regions. So the lesson trims the code columns and sets them in upper case through Format, then uses Replace Values to strip hyphens and symbols and to turn placeholders into true empty values, with Replace Errors for genuine errors. On a register export the same steps make IFR, ifr and a stray-spaced IFR one status before anything is counted or merged, which matters doubly because a merge on a code matches exactly as well. Worksheet formulas such as COUNTIFS ignore capitals, which is why the problem often surfaces only after a register moves into Power Query.
Our monthly summary lists April before January: can the query put the months in calendar order?
Yes, with a month number column beside the month name, the fix The Complete Excel Course with AI Integration builds in Lesson 159. The lesson cleans the sale date first, clearing placeholders and an impossible date that would break the conversion, sets it as a date, then adds year, month name, month number and month start columns, plus a year-month label from a custom column. Its reason is your problem exactly: without a month number, months sort alphabetically, April, August, December. With the number in the table, or the year-month label that sorts correctly as text, the months fall into calendar order and one year's months stay apart from the next. On a register export, apply it to the date issued or received, and the monthly summary reads in the order the project lived it.
Can the query sort status codes into open and closed, and count documents by discipline and month as it goes?
Yes: a conditional column does the sorting and Group By the counting, both taught in The Complete Excel Course with AI Integration. Lesson 160 adds custom and conditional columns inside the query, a profit calculation and a High or Normal label among them, so a rule is written once and applied identically at every refresh; on a register the conditional column maps each status code to Open or Closed. Lesson 161 then builds a separate reference query with Group By, totalling the sales and counting the rows for each month and region with the biggest figures on top, so anything out of proportion catches the eye. For a document controller that second query becomes a standing check: documents per discipline per month, set against the count the system reports for its own export, before the weekly report goes anywhere.
Our submission programme has a column for every month: can Power Query turn it into rows a PivotTable can read?
Yes: Unpivot Other Columns reshapes it in one step, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a budget export laid out the same way, with one column per month beside the region, category and measure columns. Select the descriptive columns, unpivot the others, and each month column becomes rows of month and value; the lesson then renames the two new columns, clears the placeholders, turns the month text into a real date and totals the values by month. Because the step names the columns kept rather than the months, a programme revised with extra months loads with the query unchanged. In that long shape, planned submissions by discipline and month sit ready for a PivotTable or a progress chart, beside the actual issues counted from the register.
Colleagues keep typing into the tables my queries load: what should they see, and what should stay behind the scenes?
One clean register sheet for them and every working query kept as a connection, the split The Complete Excel Course with AI Integration teaches in Lesson 162. The lesson's Close and Load first drops each query onto a sheet; Queries and Connections then shows each one's rows and last refresh on hover, and the staging and checking queries are switched to Only Create Connection, their sheets deleted. Two gains follow for a shared register: the file stays light, since intermediate steps never fill the grid, and nobody types into a staging table whose next refresh would wipe the edit. Corrections belong in the source export or in the code lists, never in a loaded table. A connection-only query still feeds PivotTables and the data model, so the reports lose nothing.
What tends to break a register query, and does the course show the repairs?
Four things, and The Complete Excel Course with AI Integration meets each of them on purpose. A moved or renamed source file breaks the connection, which is why the project keeps every file in one folder from the start (Lesson 153). A value that does not fit its column's type, such as a quantity written as a word, turns into an error, so the lesson replaces it before setting the type (Lesson 158). The word error typed into a cell is plain text to Power Query, so Replace Errors passes over it and Replace Values catches it (Lesson 157). And a step that no longer fits the data stops the query, where deleting the step clears it, as Lesson 167 shows when a Changed Type step fails. With those four in hand, a document controller mends a stalled register query without starting again.
Can Power Query list the files in a project folder, so the register can be checked against what is actually saved?
Yes, through the From Folder connector the course uses to combine files. Pointed at a folder, it first lists every file by name before anything is combined, and loading that list as it stands gives a plain inventory; that part is Power Query itself rather than a step of the lesson. The Complete Excel Course with AI Integration teaches what follows in Lesson 166, where the same connector stacks a folder of data files and its Source.Name column names the file behind each row. To check the register against a folder of documents named by number alone, take the file extension off the names with Replace Values (Lesson 157) and merge the register's numbers against the list (Lesson 163): a registered document with no file comes back with an empty match, ready to chase before an audit or a handover.
Our register lives in an Excel workbook rather than a CSV export: do the Power Query lessons still apply?
Yes: every step taught works on whatever the query reads, and The Complete Excel Course with AI Integration starts from files because system exports usually arrive that way. The lessons bring in a CSV through Get Data (Lesson 155) and a whole folder of files (Lesson 166), and Lesson 154 opens the Get Data menu to show the range of file types it accepts. Power Query can also read a table in an open workbook, a standard part of Excel that the lessons have no need to cover, and from there trimming, typing, merging, appending and unpivoting run exactly as taught. Many registers are exported as CSV for the client anyway, so both routes earn their keep. Either way the source stays untouched and the cleaned register is rebuilt at each refresh.
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
- Formulas for document controllers
- Lookups for document controllers
- PivotTables for document controllers
- Charts for document controllers
- Dashboards for document controllers
- Document control conditional formatting
- Data cleaning for document controllers
- Data validation for document controllers
- Excel tables for document controllers
- Text functions for document controllers
- Date functions for document controllers
- Dynamic arrays for document controllers
- Power Pivot and DAX in document control
- Macros and VBA for document controllers
- Power Automate for document controllers
- Copilot for document controllers
- ChatGPT for document controllers
- Claude in Excel for document controllers
Power Query for other jobs
- Power Query for quantity surveyors
- Power Query for civil engineers
- Power Query for quality engineers
- Power Query for construction managers
- Power Query for health and safety
- Power Query for production managers
- Power Query for M&E engineers
- Power Query for industrial engineers
- Power Query for every job