The Complete Excel Course with AI Integration

Power Query for mechanical and electrical engineers

Test rigs, data loggers and maintenance systems each export in their own layout, and getting them into one clean table can eat a morning of every test campaign. In The Complete Excel Course with AI Integration, Power Query is taught through SalesFusion, an industry-standard project whose query lessons follow an engineer's order of work: a raw CSV cleaned and typed, derived and flag columns, completeness checks, joins, stacked files and folders, and channels unpivoted.

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:

  • Import a rig or logger CSV into Power Query, remove the columns no analysis needs, give the rest clear names and keep every step recorded for the next file.
  • Clear error text, NA entries and stray spaces out of readings and tags, and give every column the right type, with fractional readings kept as decimals.
  • Work out derived values such as power or efficiency, and flag pass, fail or aborted runs, in columns added inside the query that rerun at every refresh.
  • Prove a run or a week of data is complete by grouping it per period and channel, counting the rows and summing the readings.
  • Join a test log to the unit register or a calibration table with a left outer merge, codes put in one case first so every match is found.
  • Stack a folder of run files into a single table where each row keeps its file's name, and append one campaign to another for a before-and-after comparison.
  • Unpivot an export with a column per channel so that timestamp, channel and reading sit on every row, and a newly added channel is taken in without a rebuild.

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.

    The course's Power Query and data model project, whose query half follows a test lab's routine: raw exports with readings stored as text, code tables to join, a second file to append, a folder of runs and a wide export to unpivot, every result proved before it is used.

  • Project 05

    SalesPlusPerformance

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

    The course's PivotTable project on order data, showing where a cleaned test table goes next: readings summarised per rig and per month, Excel grouping the dates itself, slicers for whoever reviews the results, and a refresh that brings in the latest rows.

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 your test data already sits in Excel tables and PivotTables hold no surprises: SalesFusion opens with the plan, then a single raw CSV. Tables and PivotTables still unfamiliar? Take Lesson 19 and the PivotTable lessons from Lesson 57 before SalesFusion, or open the course at Lesson 1. Already importing exports through Get Data? Lesson 160 is where the query starts to calculate and check, with joins and the folder query after it.

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 plan and the first file: SalesFusion's goal of a clean, connected report that refreshes, the extract, transform and load idea behind every query, and a raw CSV imported with Get Data and opened in the Power Query Editor instead of being dropped onto a sheet.
  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 What an export needs before any analysis: columns removed and renamed with each step recorded, codes trimmed and set in capitals, symbols and NA entries replaced, error cells caught, number and date types fixed, and reporting fields taken from the date.
  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 Engineering logic written into the query itself: new columns that compute a value or mark a row, a referenced QA query grouping every month and region with a sum and a row count, and the three places a finished query can be loaded, as a connection, a table or the Data Model.
  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: lookup files merged in with Left Outer as the join kind, a finished pipeline duplicated and pointed at a second file with its merges made again, and the two results appended into one table whose headers match.
  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 combined by one query, each row keeping its file's name, with the cleaning steps placed in the sample-file query so they reach every file; then profit and fiscal year fields, and a master table merged with the lookups and appended to the history, checked for empty values.
  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 Other Columns on a budget export that spreads its months across the sheet, giving one row per month and measure that survives new columns, and Pivot Column splitting a mixed measure column back out where each measure needs its own.
  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.

Dynamometer runs, vibration logs and power meter readings all arrive as CSV files: how does a mechanical or electrical engineer get them into shape with Power Query?

By recording the clean-up once as a query and letting Refresh replay it on every new file, which The Complete Excel Course with AI Integration from Coding Liquids teaches end to end on SalesFusion. Its messy exports carry the faults a logger file does: columns nobody needs, codes with stray spaces, error text and NA where values belong, numbers held as text and dates Excel cannot recognise. The lessons fix each one as a recorded step, add calculated and flag columns, test the data with a Group By check, join it to lookup files, stack a second file and then a whole folder, and unpivot a wide export into a long one. That is 17 lessons and 1 hour 36 minutes on an industry-standard project designed after talking with people from many different industries, and every step carries over to rig, sensor and meter data unchanged.

My logger writes one column per channel: what does Unpivot do with that, and what happens when a channel is added?

It folds the channel columns into two, channel and reading, and a channel added later flows through untouched. The Complete Excel Course with AI Integration teaches it in Lesson 173 on a budget export that spreads its months across columns: the descriptive columns are selected, Unpivot Other Columns turns everything else into rows, and the two new columns are renamed for what they hold. Because that command names the columns it keeps rather than the ones it folds, a new month, or for you a ninth channel, is taken in at the next refresh. The lesson then clears n/a from the values, makes a real date from the period text, and uses Pivot Column to give two measures sharing one column their own columns again, as voltage and current logged under one label would need. The long result is the shape PivotTables, charts and a data model read best.

Each test run is saved as its own file, named after the unit: can Power Query stack the runs and keep the unit number?

Yes: a folder query stacks every file and writes each one's name into a column beside its rows. The Complete Excel Course with AI Integration builds it in Lesson 166: Get Data From Folder, then Combine and Transform, and all the files there become one table, with Source.Name showing where each row began. All the cleaning lives in the Transform Sample File, where the lesson repeats the renames, trims, replacements and types of the earlier lessons, so every file, present or future, is treated alike. For an engineer that file name is data: it carries the unit, and a Replace Values step of the kind taught in Lesson 157 strips the fixed parts of the name away to leave the unit number. Lesson 168 drops Source.Name from its finished table because the sales report has no use for it; a test report keeps it as the unit column.

Aborted runs, readings logged as ERR and gaps marked NA keep spoiling my averages: how does a query keep them out?

In two moves, which The Complete Excel Course with AI Integration teaches separately: the bad values become true empties first, then the rows that should not count are filtered out. Lesson 157 replaces NA with nothing, so it becomes a real null that sums and averages skip, and it makes a point every engineer needs: Replace Errors catches only genuine error cells, while a cell holding the word error, or ERR from an instrument, is ordinary text and needs Replace Values. Filtering comes later, in the QA query of Lesson 161, where rows with no count and months with no readable date are taken out, and again when Lesson 164 unticks the empty dates of a new file. An aborted run can be marked first with a custom or conditional column, as Lesson 160 marks returns, and then filtered out on that flag.

Can the wrong data type in Power Query quietly change my readings?

Yes, and The Complete Excel Course with AI Integration shows exactly how: a Whole Number type rounds every fraction it is given, without a warning. Lesson 168 sets its profit column to Decimal Number for that reason, since a whole number type would round it silently, and Lesson 158 keeps Whole Number for the one column where fractions cannot exist, units sold. For test data the rule is strict and simple: readings, currents, pressures and temperatures are Decimal Number, while counts of cycles, units or events can be Whole Number. The same lesson shows why types matter at all, because Power Query cannot total or average text, so a column of readings left as text produces a report that looks right and calculates nothing. Setting a type is one click per column, and it is the click that decides whether a fractional reading keeps its fraction.

Can Power Query join a test log to the unit register or a sensor calibration table?

Yes, with a merge, and The Complete Excel Course with AI Integration teaches it on two lookup files in Lesson 163. The sales query is merged with a products table on the product code and with a regions table on the region code, Left Outer as the join kind, and the new columns are expanded without the prefix that would clutter their names. Left Outer matters for test data: every row of the log stays, whether or not the register knows its unit, so nothing measured is lost in the join. Two habits from neighbouring lessons make the merge dependable. Codes are trimmed and put in capitals first (Lesson 157), because Power Query treats a lower-case tag as a different value; and after a merge, the finished table is checked for empty values (Lesson 168), which is where an unregistered unit or an uncalibrated sensor shows itself.

Can Power Query prove a week of logger data is complete before I analyse it?

Yes: a Group By query counts the rows and totals the values for every period and group, and the gaps show at a glance. The Complete Excel Course with AI Integration builds that check in Lesson 161 as a separate query referenced from the main one, so it stays wired to the source: Group By on the year-month and the region, a sum of sales and a count of rows for each pair, sorted largest first. The lesson's point is that a figure which looks too good rises to the top, usually a typing slip, and that months with no readable date appear as nulls. For a logger, group by day and channel instead: a day whose row count falls short points to a dropout, a channel whose total dwarfs its neighbours points to a scaling fault, and both are found before a single chart is drawn.

Should every cleaning stage of a test-data query land on a sheet, or just the finished table?

The finished table alone, and The Complete Excel Course with AI Integration calls that the golden rule of loading. Lesson 162 closes and loads the staging and QA queries, then changes both to connection only: they stay in the workbook, ready to feed a PivotTable or the data model, while the sheets they had filled are deleted. Loading every stage into the grid makes a workbook slow and bloated, which a month of high-rate logger data would do quickly. Data, Queries and Connections lists each query with a preview of its rows and its last refresh, so nothing is hidden by keeping it off the sheet. The final table goes where it is needed: onto a sheet for a short log, or into the Data Model for a long one, where the Power Pivot lessons that follow (Lesson 169 and Lesson 170) relate it to other tables and need Excel for Windows.

Can Power Query set a test campaign from before a design change beside the one after it?

Yes: the first campaign's query is reused on the second file and the two are stacked, which The Complete Excel Course with AI Integration teaches with two years of sales. In Lesson 164 the finished query is duplicated and only its Source step is pointed at the new file, so every cleaning step comes across; the merges are then made again on the new query, and the new file is audited for its own empty dates. Lesson 165 appends the two results into one table with Append Queries as New, leaving both sources untouched, and the stack relies on the two having matching column headers. Give each query a column naming its campaign before the append, using the custom columns of Lesson 160, and one PivotTable can then show every measure before and after the change, side by side, for the design review.

Can the query itself work out power, efficiency and a pass or fail for every row, so the sheet needs no formula columns?

Yes, with custom and conditional columns, which The Complete Excel Course with AI Integration builds in Lesson 160 and repeats inside the folder query in Lesson 167. The lesson adds Profit as one column minus another, Margin as a division that returns null when the divisor is empty or zero, a conditional column that labels rows at or above a threshold, and a flag that marks negative amounts as returns. Swap the arithmetic and you have power as voltage times current, efficiency as output over input with the same guard against a zero, Pass or Fail against your acceptance limit, and a flag for a reading with the wrong sign. The lesson's reason for doing it in the query rather than on the sheet suits engineering well: logic in the query runs identically at every refresh, so two reports built from the same data can never disagree.

Before analysing a logger export, can Power Query show me which channels hold errors, gaps or odd values?

Yes: column profiling shows it for every column at once, and The Complete Excel Course with AI Integration switches it on in Lesson 166. On the View tab, Column quality gives each column's share of valid, error and empty cells, Column distribution shows how many distinct and unique values it holds, and Column profile opens the detail for a selected column. The lesson also changes the profiling from the first thousand rows to the entire data set, which matters for a logger: a dropout three days into a week-long file never appears in the first thousand rows. For an engineer the payoff is a health check of every channel before any cleaning is decided: the channel that is a fifth empty, the one with a handful of errors, the one whose distinct count says it barely moved all week.

Power Query writes M code behind every click: do I need to learn M to use it on test data?

A few short expressions at most, because The Complete Excel Course with AI Integration builds every query with menus and buttons and records each click as a step for you. The Applied Steps panel of Lesson 156 lists those steps in order, each one can be renamed, and all of them replay at every refresh without you reading the code behind them. M appears only where a custom column needs a formula: the custom column of Lesson 158 that puts every rate on one scale, the month label of Lesson 159 and the date built from text in Lesson 173, each a single line that reads much like an Excel formula. For an engineer used to equations, those lines are the easy part. The lessons also flag one habit that saves trouble in M later: headers without spaces, which Lesson 156 gives every column it renames.

Two suppliers send part lists in different layouts: can Power Query bring them into one bill of materials?

Yes: each list is shaped to one layout and the lists are then stacked, the order The Complete Excel Course with AI Integration follows throughout SalesFusion. Each supplier's file gets its own query: unwanted columns removed and the rest renamed to the names you choose (Lesson 156), part numbers trimmed, put in capitals and stripped of hyphens with Replace Values, as the lesson does to product codes (Lesson 157), and quantities set to Whole Number (Lesson 158). Once the headers match, Append Queries stacks the lists into one (Lesson 165), and a merge against your parts master adds the description and rating to every line (Lesson 163). When a supplier sends an updated list, the same queries rerun on it. Matching one supplier's number to another's equivalent part needs a cross-reference table only you can supply; once it exists, it joins in by the same kind of merge.

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.