The Complete Excel Course with AI Integration

Power Query for civil engineers

A live project sends a civil engineer the same files every week: daily progress reports from every foreman, measurement sheets against the BOQ, plant and labour returns, lab logs and programme exports. The Complete Excel Course with AI Integration hands that routine to Power Query on SalesFusion, an industry-standard project, and this page picks out the lessons that do it: cleaning, merges, appends, Group By checks, a folder of files combined and Unpivot.

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:

  • Combine every foreman's or subcontractor's daily return saved in a folder into one Power Query table, each row marked with its file and the next day's file joining at a refresh.
  • Clean planning, lab and survey exports inside the query: codes trimmed, NA and n/a turned into true blanks, and dates, quantities and amounts given real data types.
  • Set tender BOQ descriptions and rates beside executed quantities with a merge on the item code, and value the work done in a custom column.
  • Total labour, plant and materials by activity, zone, supplier or month with Group By, counting the rows so every total ties back to the source sheets.
  • Label rows that break a rule, such as a negative quantity, check key columns for blanks and remove entries made twice, all as steps that rerun on every refresh.
  • Point a finished query at the next package's file and append packages into one table for a project-wide report.
  • Unpivot a manpower, cash-flow or progress export laid out a column per month into a long table of month and value, ready for PivotTables and charts.
  • Load only the finished table to a sheet and keep staging queries as connections, so a site workbook stays quick to open and refresh.

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 faulty sales exports, it is the course's Power Query workshop: text where figures belong, NA entries, dates that are not dates, codes waiting for names, a second year to stack, a folder to combine and a grid of months to turn into rows. A site's returns and exports carry the same faults, and every fix carries over.

  • Project 05

    SalesPlusPerformance

    A sales question answered in seconds, straight from the order data.

    Built on order-level sales, it teaches the PivotTables a clean query feeds: totals by category and by month with dates grouped, slicers to narrow them and Refresh All (Lesson 65), so this week's returns travel through every query into the progress report at one press.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Made for budget against actual spending, it shows where a clean table of executed costs goes next: plan and actual set side by side by key with SUMIFS, variance and percent variance on every row, and a dashboard filtered by month, department and category, the layout a project's cost report can follow.

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 Excel tables and a first PivotTable are behind you: SalesFusion opens with its set of raw exports and moves from a single file to a whole folder. If tables are new, Lesson 19 teaches them, and the PivotTable section from Lesson 57 shows where a clean query's output goes; if Excel itself is new, start the course at Lesson 1. Already bringing files in through Get Data? Jump ahead to Lesson 160, where rules, checks, merges and the folder query start.

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 project and the idea under it: a clean-up recorded once and replayed on every new file, then a CSV brought in through Get Data and opened in the Power Query Editor instead of pasted. An export from planning, lab or stores software enters by the same door.
  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 cleaned properly: spare columns removed and the rest renamed, codes trimmed and set in one case, symbols, NA and stray hyphens stripped from figures, quantities and amounts given true number types, impossible dates cleared, and year and month columns added. Daily returns and lab logs carry exactly these faults.
  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 checks inside the query: custom and conditional columns that calculate and label each row, a Group By query that totals and counts rows by month and region to prove the data, and Close and Load choices that keep staging queries as connections and load only the result.
  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 Joining and stacking: a left outer join that brings names in beside codes without losing a row, a finished pipeline pointed at a second file, and two tables appended into one. On a project that is BOQ descriptions and rates beside executed quantities, and one package stacked on another.
  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 A whole folder as one table: every period file combined and cleaned by steps set on a sample, the source file named on every row, profit and fiscal year columns added, and a master table built from history and lookups, then checked for blanks. Daily progress reports dropped in a folder become one table at a refresh.
  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 Unpivot for exports laid out a column per month: the month columns turned into rows of month and amount, a real date made from each, and a query that keeps working when the next month's column appears, the shape of a manpower histogram or a cash-flow forecast.
  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.

Is Power Query useful for a civil engineer, or is it a tool for finance and data teams?

Very useful, and on a construction project it pays back quickly. 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, and its material is the kind of file a site produces daily: exports with figures stored as text, placeholders where values should be, dates that will not read as dates, codes that need names, and a folder of files sharing one layout. Daily progress reports, measurement sheets, plant and labour returns and lab logs fit that description exactly. This page picks out 17 lessons, 1 hour 36 minutes in all, from the first import to a folder combined and a monthly grid unpivoted. Each step is recorded once and replayed at every refresh, so the copy and paste that eats a site engineer's evenings becomes a button press.

How does a folder of daily progress reports become one table that keeps itself up to date?

Through a folder query, which The Complete Excel Course with AI Integration builds in Lesson 166. Get Data from Folder combines every file in the folder into one table, and a Source.Name column records which file each row came from, so a day or a foreman stays visible after the stack. The cleaning is set once on a sample file and applies to every file in the folder, present and future, and column profiling switched to the entire data set shows at a glance which column holds errors or blanks. Lesson 167 adds calculated columns on top, and Lesson 168 builds a master table from the folder and the history, checked for blanks after each merge and append. Save tomorrow's return into the folder, press refresh, and it joins the table with the same cleaning. The returns need a shared layout, which a standard site template gives them.

Can a query set tender BOQ rates beside the quantities executed on site?

Yes: a merge does it, and The Complete Excel Course with AI Integration teaches the merge on real lookup tables in Lesson 163. The sales query is merged with a products table on its code, using a Left Outer join that keeps every sales row and brings the matching columns in beside it, with the rate columns typed as decimal numbers first. Read the BOQ as the lookup table and your measurement sheet as the main query, and every executed quantity gains its description and tender rate. A custom column then multiplies quantity by rate for the value of work done, the same kind of column Lesson 160 uses to work out profit, and a Group By (Lesson 161) totals it by item or by section of the BOQ. An item code missing from the BOQ comes back blank, which the checks of Lesson 168 catch before it reaches a valuation.

Exports from our planning software and the lab arrive with dates and numbers as text: can Power Query fix them every time?

Yes, once, and then on every export that follows. The Complete Excel Course with AI Integration cleans exactly these faults on SalesFusion's files. Lesson 157 trims and cleans text, sets codes in one case and uses Replace Values to strip symbols, commas and stray hyphens and to turn NA into true nulls. Lesson 158 gives each column a real type, whole number, decimal or text, after hunting down quantities written as words. Lesson 159 clears placeholders such as n/a and an impossible date before converting the column to dates, then adds year, month and month-start columns for reporting. Applied to a programme export, that means start and finish dates that subtract and durations that add up; applied to a lab log, test dates that sort and results that average. The steps sit in the query, so the next export is cleaned without a single cell touched.

Can Power Query total labour, plant and materials by activity, zone or supplier?

Yes, with Group By, which The Complete Excel Course with AI Integration teaches in Lesson 161 as both a summary and a check. The lesson references the main query and groups it by month and then region, with two results for each group: the sum of the sales and a count of the rows. Sorted with the biggest totals first, a figure that looks too good stands out at once, usually a typing slip, and blank months point to dates the raw file could not read. On site, group a combined labour return by activity and week for hours, a plant return by machine and month for running hours, or a delivery log by supplier for tonnes received. Lesson 162 then keeps such queries as connections, ready to feed a PivotTable, so the totals sit in a report instead of cluttering the workbook with staging sheets.

The planned manpower and cash flow come out of the programme as one column per month: can a query turn that into something I can chart against actuals?

Yes: Unpivot is built for exactly that layout, and The Complete Excel Course with AI Integration works on it in Lesson 173. The lesson takes an export with a column for every month, keeps the descriptive columns fixed and uses Unpivot Other Columns to turn each month column into rows of month and amount. It then clears n/a values, makes a real date from each month and totals the figures by month with Group By. Because the query names no month, a forecast that gains a new month column next period refreshes without a change. In that long shape, planned manpower or planned spend lines up month by month with the actuals coming out of your daily returns, so one PivotTable or one line chart can carry planned and actual together, which a grid with a column per month never allows.

Can one query serve every package or phase without being rebuilt each time?

Yes: build the pipeline once and point copies of it at each package. In Lesson 164, The Complete Excel Course with AI Integration duplicates a finished query and changes nothing but its Source step, aiming it at a second file, so every cleaning step travels with it; the lesson still audits the new file, which turns out to hold blanks of its own. Lesson 165 then stacks the two cleaned tables with Append Queries as New, lining columns up by their headers and leaving each source intact, so any odd figure in the combined table can be followed back to the package it came from. For a contractor running several packages, phases or subcontracts, that means a single table for the whole project, ready for the client's monthly report, and a new package added at any time with a single duplicate and a single append.

How do I prove the combined figures match what the foremen actually sent?

Build the proof into the workbook, as The Complete Excel Course with AI Integration does in Lesson 161. A reference query groups the data by month and region and returns the total and the row count of each group, so the totals and the number of rows can be set against the source sheets before any figure is reported. Lesson 156 shows the other half: every change is saved as a named step in the Applied Steps list, in order, and clicking a step shows the data as it stood at that point. The source files are never edited; the query reads them and writes a new table. After merges and appends, Lesson 168 filters the key columns for blanks, since joins can let them in. A site manager asking where a number came from gets the file, the steps and the check, not a memory of what was pasted where.

Can the query flag a negative quantity, a missing item code or a ticket entered twice?

Yes, as steps that run on every refresh, which The Complete Excel Course with AI Integration teaches in Lesson 160. A custom column labels each row whose amount is negative, so returns and corrections stand apart from ordinary entries; a conditional column labels rows above a threshold you set; the filters on the key columns are checked for blanks; and Remove Duplicates on the order number removes any entry made twice. On site, the same moves label a negative quantity on a delivery return, show a measurement line with no item code, and remove a delivery ticket keyed in by two people. The difference from fixing the sheet by hand is permanence: the rules sit inside the query, so tomorrow's return passes through the same checks the moment it arrives, and nobody has to remember to look.

Can Power Query read delivery tickets or lab reports that arrive as PDFs?

Get Data lists PDF among the file types it reads, and The Complete Excel Course with AI Integration shows that list in Lesson 154; the practice itself is on CSV files, the format most site systems can export. That choice is deliberate: once data sits in the Power Query Editor, every cleaning, merging and grouping step works the same whatever the source. So the first question for a supplier or a lab is whether it can send a CSV or an Excel export alongside the PDF; when it can, the whole path on this page applies directly, from the first import (Lesson 155) to a folder of files combined (Lesson 166). Scanned paper tickets are another matter, since no import reads handwriting, and a typed register stays the reliable answer for those.

Most construction dashboards I see are built in Power BI: is learning Power Query in Excel a step towards that?

Yes, a direct one. Power Query is the same engine in Excel and in Power BI, and the ETL lesson that opens SalesFusion in The Complete Excel Course with AI Integration (Lesson 154) names both as places to load clean data for reports and dashboards. Every step you learn, importing, cleaning, setting data types, merging, appending, combining a folder and unpivoting, transfers with its menus and its logic intact. The course keeps the whole job in Excel, where most site reporting already lives, and Power BI itself is not taught. For many projects that is enough: a refreshable Excel report built on clean queries answers the weekly meeting without new software. When a firm does move to Power BI, the engineer who already cleans and combines site data in Power Query has the hardest part done.

My site laptop is a Mac: can I still follow the Power Query lessons?

Yes. Across The Complete Excel Course with AI Integration, Windows is asked for by the Power Pivot and Power Automate sections alone, and this page holds neither, so Excel from Microsoft 365 on a Mac carries the whole Power Query path. One habit from the opening lesson (Lesson 153) matters more on a site laptop than anywhere: keep the source files in the project folder the queries were built on, because a query looks for its files where it found them, and a return moved to another drive breaks the connection. Work from one agreed folder, synced or shared, and a refresh behaves the same on site and in the office. The data model SalesFusion builds after this path, with Power Pivot relationships and DAX measures from Lesson 169, does need a Windows PC, so leave that stage for an office machine if you want it.

At what point in the lessons does Power Query start taking work off my desk?

At Lesson 159, a little way into a path of 1 hour 36 minutes, and every lesson after it removes another chore. By then The Complete Excel Course with AI Integration has taken one raw export from import to clean table, real types and month columns included; recreate those steps on your own lab log or labour return and that file never needs cleaning by hand again. Group By checks arrive in Lesson 161, so a week's totals can be proved before the meeting. Merges, a reused pipeline and appends follow, which is where BOQ rates and second packages come in. Lesson 166 is the big one for site work: a folder of daily reports becomes one query. Every stage can be held against the finished SalesFusion workbook that ships with the practice files before you trust it on a live project, and finishing the whole course adds a Certificate of Completion that an employer can verify online.

Engineers think in formulas: how much of Power Query is clicking, and how much is writing code?

Almost all of it is clicking, and The Complete Excel Course with AI Integration keeps it that way. Importing a file (Lesson 155), removing and renaming columns, trimming text, replacing values, setting data types, merging, appending, grouping and combining a folder are menu commands, each recorded for you as a step. The typing comes in short custom columns, such as profit as one column minus another, or a margin guarded by a test for zero (Lesson 160), and they read much like the worksheet formulas an engineer writes daily. The course does not teach writing whole queries in M, the language behind the steps, and a site's data work rarely needs it. Your formula habits help in another way too: a merge behaves like a lookup done once for a whole table, and Group By like a SUMIFS answered for every group at once.

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.