The Complete Excel Course with AI Integration
Power Query for construction managers
Cost exports, weekly site returns, subcontractor logs and month-by-month forecasts: a construction manager rebuilds the same report from them every week. Power Query takes that rebuild over, and SalesFusion, the industry-standard data project of The Complete Excel Course with AI Integration, walks through it in the order this page follows: import, clean, rules, checks, merges, appends, folders and Unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Open each weekly cost or progress CSV through Get Data into the Power Query Editor, so the original file stays untouched and every clean-up step is saved.
- Make cost codes and package references from different jobs match exactly by trimming them, setting them in capitals and stripping hyphens, and clear symbols, commas and NA out of amounts.
- Set amounts, quantities and dates to proper data types, and stamp each line with its year, its month and a month-start date for reporting by valuation period.
- Write the job's rules into the query, a flag for credit notes and a band for high-value lines, and drop repeated entries on their reference.
- Tie each week's combined data back to the accounts system with a Group By of totals and row counts by period.
- Bring package names and budget lines in beside every cost entry with Merge Queries, and catch any code the coding list does not hold yet.
- Read a folder of weekly site files with one query that takes each new week's file at the next refresh, with the source file named on every line.
- Unpivot a progress or forecast sheet laid out with floors or months across the top into long rows for PivotTables and charts.
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.
Built on deliberately messy sales exports, it rehearses every move a weekly cost or site feed needs: text cleaned, types fixed, dates broken into periods, lookups merged, years stacked, a whole folder read at once and a wide grid made long, ending in one master table held ready for reporting.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Built for budget against actual, it shows where a clean cost feed is headed: budget and actual matched key by key through SUMIFS, each line then carrying variance and percent variance, with cards, charts and slicers on the dashboard above: the package cost report your queries will supply.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on a table of individual sales orders, it teaches the PivotTables that turn a cleaned table into totals per category and per month, and Refresh All (Lesson 65), so the weekly summary catches up with fresh data in one press.
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 with Lesson 153 once your registers sit in Excel tables and a PivotTable holds no fear: SalesFusion opens with its messy CSV files and builds, step by step, the pipeline a weekly site feed needs. Tables and PivotTables still new? Take Lesson 19 and Lesson 57 first; new to Excel altogether, start at Lesson 1. Already cleaning a single export in Power Query? Jump to Lesson 163 for merges and appends, then Lesson 166 for the folder of weekly files.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The idea behind a report that rebuilds itself: ETL, where the steps are recorded once and replayed on every new file, then Get Data and a CSV opened with Transform Data instead of Load, so the weekly export becomes a live connection rather than a pasted copy. The lessons import sales files; a cost or site export comes in exactly the same way.
- 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 Cleaning in the editor: unwanted columns removed and headers renamed, every change logged in Applied Steps; codes trimmed and set in capitals, with hyphens, money symbols, commas and NA entries replaced; amounts, quantities and percentage rates given true number types after numbers typed as words are put right; and a date column rescued from its placeholders, then split into the reporting fields of year, month name and number, year-month and a month-start date.
- 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 written into the query itself: a profit column, a margin that stays empty where sales are zero, a High or Normal band at a value threshold and a Return or Sale label for negative amounts, then repeated order numbers dropped. A reference query summarises each month and region with a total and a row count, and only the finished output is loaded to the grid.
- 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: product and region lookups merged in as a left outer join so no sale is lost, a finished pipeline duplicated and pointed at another year's file by changing its source step alone, and both years stacked into one query by matching headers.
- 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 Every period file in a folder read by one query, each row tagged with its source file's name and the clean-up written once in the sample file so the whole folder receives it; profit, margin and fiscal-year fields built on top; then lookups merged, history appended and nulls hunted down before the master table is 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 Wide sheets made long: the course's budget export, one column for each month, reshaped by Unpivot Other Columns into rows that each hold a month and a value, then pivoted on its metric column into separate budget and target columns and grouped by month start. A month column added later is absorbed, and the query needs no edit.
- 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.
Which should a construction manager build first with Power Query: the cost report feed, the weekly site returns or a subcontractor scorecard?
The cost report feed, and The Complete Excel Course with AI Integration from Coding Liquids covers every step of it through SalesFusion, whose industry-standard workbook was designed after talking with people from many different industries. Its raw files fail the way a cost export fails: codes with stray spaces and hyphens, amounts carrying symbols and NA, dates that are not dates. Clean that once, and the same skills serve the site returns, combined from a folder of weekly files, while a scorecard becomes a Group By of the combined table by subcontractor. Much of what a search turns up on this subject is Power BI; Power Query is the same cleaning engine built into Excel, on the Data tab, with nothing to install. Each of the 17 lessons picked out here, 1 hour 36 minutes in all, is tied below to the construction file it puts right.
Each site team saves a weekly progress file to the same folder: can Power Query combine them and take in next week's without me?
Yes: point one query at the folder and every file in it becomes one table, and The Complete Excel Course with AI Integration builds exactly that in Lesson 166. Get Data From Folder, then Combine and Transform, stacks the files and writes the source file's name on each row, so you can tell which site and which week every line came from. The cleaning goes into the sample file once and reaches each file in the folder, today's and those saved later, and the column profiling tools check the whole stack for gaps and errors, not just its first rows. When the site teams save next week's files, one refresh takes them in. The one discipline asked of the sites is a fixed layout: the same columns under the same headers, which is what lets the files stack.
Cost codes arrive with hyphens from one job, without them from another and in lower case from a third: can Power Query make them match?
Yes, and it must, because Power Query treats text exactly: to it, North and NORTH are two different regions, as The Complete Excel Course with AI Integration points out in Lesson 157. That lesson gives the remedy step by step on the sales files' codes: Trim removes stray spaces, UPPERCASE sets every code in capitals, and Replace Values with nothing in the replacement strips the hyphens, so every job's version of a code ends up identical. Set those steps once and each week's export is cleaned the same way at every refresh. The payoff comes in the merge of Lesson 163, where codes have to match character for character to bring in a package name or a budget line; codes cleaned to one form match every time, and the cost report stops losing lines to a hyphen.
Can the query mark credit notes and lines above a value limit before the cost report sees them?
Yes: rules like those belong inside the query, and The Complete Excel Course with AI Integration writes them there in Lesson 160. A custom column labels each row Return or Sale by whether its amount is negative, which on a cost export picks out credit notes; a conditional column bands rows as High or Normal at a value you choose, so lines above your review limit stand out. The same lesson adds profit and a margin that stays empty where the sale is zero, sets null checks on the key columns and removes duplicates on the order reference, the step that catches an invoice keyed in twice. Because the rules live in the query, they run identically at every refresh, and two reports built from the same feed can never disagree about which lines were credits.
How do I show the commercial team that the combined cost table still ties to the accounts system?
With a check that the query builds for you, which The Complete Excel Course with AI Integration teaches in Lesson 161. A second query, created as a reference so it stays wired to the main one, groups the data by period and region and returns two figures for each group: the total of the amounts and the number of rows. Set those against the accounts system's own totals for the same periods and the tie-out takes minutes. The lesson sorts the totals largest first, so a figure that looks too good jumps out, and filters the empty month that unreadable dates leave behind, a warning sign in itself. Group by package instead of region and you have a control sheet the commercial team can read, rebuilt at every refresh with nothing copied by hand.
Our progress sheet has trades down the side and floors across the top: can Power Query turn it into rows?
Yes: Unpivot does exactly that, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a wide budget export with one column for each month. Select the columns that describe a row, choose Unpivot Other Columns, and every remaining column becomes rows holding its heading and its value; for your sheet, each trade gains a row per floor, carrying the floor and the quantity or percentage. Because the step names the columns to keep rather than the ones to turn, a floor added to the sheet later is taken in without the query being touched. The lesson then pivots the long table on its metric column into budget and target columns and totals them by month, the same move that turns a long progress table back into a summary by floor.
A new cost code turns up mid-job before the coding list is updated: what does the query do with it?
It keeps the line and leaves the lookup columns empty, so nothing is lost and the gap is visible. The Complete Excel Course with AI Integration explains why in Lesson 163: Merge Queries set to a left outer join holds on to all the cost rows and fills in package details only where the code is found in the list. A code the list has never seen therefore arrives with blanks beside it rather than vanishing from the totals. Lesson 168 adds the routine that catches it: after each merge and append, check the key columns for nulls before the table is loaded. Filter those blanks into a short exceptions list, update the coding list, refresh, and the cost lands in the right package. Without that check, the same cost would simply be missing from every package total.
A new job starts next quarter: can I reuse this job's queries on its exports?
Yes: duplicate the queries and point them at the new files, and The Complete Excel Course with AI Integration shows how little that takes in Lesson 164. The lesson copies a finished cleaning query, opens its source step, browses to a different file and confirms; every cleaning step after it, trimming, types and dates, now runs on the new data without being rebuilt, and the lookups are merged onto the new query in minutes. It also insists on an audit, because a new file brings faults of its own, in the lesson's case fresh nulls in the date column. Lesson 165 then appends two queries into one with matching headers, which is how a portfolio view of both jobs, or this job against last year's, comes together. On a construction firm's next project, the reporting is ready the day the first cost export arrives.
Will a workbook full of queries crawl on a site laptop?
Built the way The Complete Excel Course with AI Integration teaches, it stays light. Lesson 162 gives the rule that matters most: load only the finished, cleaned output into the grid and keep every staging query as a connection, because loading each step's result into sheets makes a workbook slow and bloated. The Queries and Connections pane then lists every query, and hovering over one previews its rows and when it last refreshed. Lesson 156 adds a habit from the very first steps: remove unwanted columns early, since every later step then has less data to process. Lesson 168 closes the master table with only the columns the report needs, dropping the source file name once it has served its purpose. A lean workbook refreshes quickly and opens without complaint on a laptop in a site cabin.
The progress export's dates include n/a, placeholders and impossible entries: can a query handle them every week?
Yes, in a fixed order that The Complete Excel Course with AI Integration teaches in Lesson 159. The impossible date goes first, replaced before anything else, because a date that cannot exist would break the conversion; the placeholders that are plainly not dates follow, each replaced with Replace Values. The lesson steps back through Applied Steps to confirm each fix, converts the column, turns any remaining errors into nulls and settles on the plain Date type, not Date and Time, which drops the clock and keeps the data lighter. Only then are the reporting fields added from it. Every one of those steps is saved, so next week's export, with its own crop of n/a entries, is put right at refresh. The nulls that remain show up later as an empty month in the control totals of Lesson 161, so none slips by unseen.
Our project controls team built the current queries: could I keep them running after they move on?
Yes, because The Complete Excel Course with AI Integration teaches Power Query the way you would inherit it: as a list of named steps you can read in order. Lesson 156 shows Applied Steps recording every change and how to rename a step so its purpose is clear; Lesson 161 explains reference queries, which stay wired to their source so a fix upstream flows through. Lesson 167 passes on the most useful repair rule of all, that most Power Query errors disappear once the step that caused them is deleted, and the lesson does exactly that to clear one. Most steps are clicks, with a short formula only where a custom column needs one. Working through the SalesFusion pipeline yourself means the queries someone else left behind will read like a familiar route rather than a black box.
Can Power Query count late deliveries and RFIs per subcontractor across all the logs?
Yes: stack the logs, then group them, two moves The Complete Excel Course with AI Integration teaches on SalesFusion. Lesson 165 appends queries that share their column headers into one table, so delivery records or RFI logs from several jobs become a single list, and Lesson 161 groups a table and returns, for each group, a total and a row count. The lessons group sales by month and region; grouped by subcontractor, with a filter for late or open items first, the same step gives a scorecard of how many deliveries ran late and how many RFIs are outstanding for each firm. Merge in the subcontractor register (Lesson 163) to add the trade and contact beside each name, and the whole scorecard refreshes with the logs, ready for the next subcontractor meeting.
The company-wide cost export holds every job: can the query keep only my job's lines?
Yes: a filter set inside the query becomes a step that reruns on every export, and The Complete Excel Course with AI Integration uses that filter list throughout SalesFusion. In Lesson 161 and Lesson 164 the filter drop-downs untick nulls and keep rows above a number, and the same list ticks one job number and drops the rest. Combine it with the early clean-up of Lesson 156, where unneeded columns are removed first so later steps carry less data, and a large company export shrinks to your job's lines before any other step runs. Each week the new export arrives whole, the filter applies itself at refresh, and your report sees only your job, without anyone cutting the file by hand or emailing you a separate copy.
On Monday morning, what does it take to bring the cleaned table and every summary up to date?
One press of Refresh All, in a workbook built the way The Complete Excel Course with AI Integration teaches. Every query replays its saved steps on the files in its source, and a query on a folder takes in any new week's file at the same time (Lesson 166). Refresh All, taught in Lesson 65, then updates every PivotTable in the workbook together, so the summaries never show last week beside this week's data. Lesson 162 shows where to confirm it worked: the Queries and Connections pane, where hovering over a query previews its rows and its last refresh. Glance at the control totals of Lesson 161, and the report is ready for the meeting before the first coffee is finished, the same way every week.
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 construction managers
- XLOOKUP and VLOOKUP for construction
- Pivot tables for construction managers
- Excel charts for construction managers
- Dashboards for construction managers
- Conditional formatting for construction
- Data cleaning for construction managers
- Data validation for construction
- Excel tables for construction managers
- Text functions for construction managers
- Date functions for construction managers
- Dynamic arrays for construction managers
- Power Pivot and DAX for construction
- Macros and VBA for construction managers
- Power Automate for construction managers
- Copilot for construction managers
- ChatGPT for construction managers
- Claude in Excel for construction