The Complete Excel Course with AI Integration
Power Pivot and DAX for quality engineers
Quality figures rarely sit in one file: inspections come from the MES, receipts and rejects from the ERP, the part master and supplier list from elsewhere, all held together by lookups and COUNTIFS that slow down every month. The Complete Excel Course with AI Integration replaces that with one model in Power Pivot, measured in DAX and built on SalesFusion, an industry-standard project; the lessons gathered here run from a prepared log to a finished dashboard.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Relate an inspection or NCR log to the part master and the supplier list in a Power Pivot data model, so part family and supplier name reach every row without a lookup column.
- Write DAX measures for parts inspected, parts rejected, reject rate, first-pass yield and PPM, with DIVIDE leaving a blank, not #DIV/0!, for a shift that inspected nothing.
- Give each defect code or supplier its share of all rejects with CALCULATE and ALL, a share that stays true for whichever line, shift or month is picked.
- Count lots, NCRs or serial numbers once each with DISTINCTCOUNT, however many defect rows each one carries, and divide by that count for defects per lot.
- Prepare the log for the model in Power Query: counts and readings as true numbers, timestamps cut to dates with month fields that sort in calendar order, and pass or fail flags as columns.
- Prove the model before it reports: totals and row counts by month from Group By, and a search for blanks after every merge.
- Lay out a defect report and a dashboard from the data model: rejects by category, by line or supplier, by month and the worst parts first, every table moved by the same slicers.
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, its second half is the part a quality engineer takes away: tables loaded into the Data Model, related in Diagram View and measured in DAX. Read its sales table as an inspection log and its product and region lists as the part master and the supplier list, and its measures turn into reject rate, PPM, lot counts and each defect code's share.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales, it is where the habits of a quality summary are formed: a field dragged to rows, rejects grouped by month, a slicer for one supplier, a refresh once new rows arrive. Each of them carries over unchanged to a PivotTable drawn from the data model.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 11 of them, 1 h 12 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 inspection data already sits in Excel tables and you have built a PivotTable: the path follows SalesFusion from its plan to the finished dashboard. New to PivotTables? Take Lesson 57 onwards first; if Excel itself is unfamiliar, the course opens at Lesson 1. Loading clean queries already? Go straight to Lesson 169, where the data model begins, on Excel for Windows: Power Pivot is switched on there when Excel asks, with nothing to download.
11 of 186 lessons · 1 h 12 min
15 SalesFusion: advanced data tools and a Power Query modelling system The plan before the build: a tour of the finished SalesFusion report, then the idea that drives it, messy exports cleaned by recorded steps and joined in a model of related tables. Exports from the MES, the ERP and the receiving bench arrive just as untidy, and the same plan carries them into one model.
- 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system The log made ready for a model: quantities and readings stored as true numbers, timestamps reduced to dates with year and month fields that sort in calendar order, row-level flags as custom and conditional columns, a Group By query of totals and row counts that proves each month, and Close and Load sending tables to the Data Model as connections.
- 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
- 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 The model and its measures: one fact table assembled and checked for blanks, then two one-to-many relationships in Diagram View and measures written with SUM, DIVIDE, CALCULATE with ALL and DISTINCTCOUNT, both in Power Pivot, which needs Excel for Windows, then a tabular report led by the figures people ask about first and a dashboard of four PivotTables under shared slicers. The lessons measure sales; an inspection log takes the same measures.
- 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
- 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 min
- 170 DAX measures in Power Pivot Total sales, margin percent and percent of total 10 min
- 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
- 172 Interactive Excel dashboard Data model PivotTables, slicers and styling 10 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.
What changes for a quality engineer when defect figures become DAX measures in a Power Pivot model instead of formulas on a sheet?
Every figure becomes one definition that follows the filter, in place of a sprawl of lookups and COUNTIFS, and The Complete Excel Course with AI Integration from Coding Liquids has you build the whole thing on SalesFusion, an industry-standard project designed after talking with people from many different industries. You load clean tables into the Data Model and relate them in Diagram View (Lesson 169), write measures with SUM, DIVIDE, CALCULATE and DISTINCTCOUNT (Lesson 170), and lay a report and a dashboard over them. The lessons run on sales files. Set an inspection log beside the part master and the supplier list, and the same build answers reject rate, PPM and lot counts for any line, shift or supplier, with nothing to copy down when next month's rows arrive. Together the 11 lessons picked out here run to 1 hour 12 minutes, and the Power Pivot steps among them need Excel for Windows.
Part numbers repeat on every inspection row but stand once in the part master: which side of the relationship is which?
The part master is the one side and the log is the many side, and The Complete Excel Course with AI Integration shows you how to read that on screen. In Lesson 169 three tables go into the Data Model and Diagram View lays them out; dragging the code in the main table onto the same code in a list draws a line, with a 1 at the list, where each code appears once, and an asterisk at the table where it repeats. The lessons join sales to product and region lists. In quality terms the part master and the supplier list sit at the 1 end, the inspection log or NCR register at the asterisk end, and every inspection reaches its part family, customer and supplier name along that line. The codes on both sides must agree exactly, so trimming and tidying them in Power Query (Lesson 157) comes first.
Reject rate and PPM need parts inspected as well as parts rejected: how does a DAX measure keep the two in step when I filter?
It lets the filter act first and divides afterwards, the pattern The Complete Excel Course with AI Integration uses for every ratio it builds. Lesson 170 writes Total Sales and Total Profit with SUM, then Margin Percentage as one measure divided by the other with DIVIDE. Put rejected and inspected quantities in their places and the result is reject rate; times a million it becomes PPM; first-time passes over inspections give first-pass yield. Pick one supplier or one shift with a slicer and both totals shrink to those parts before the division, so the rate always belongs to the parts behind it. Dividing totals also settles a common argument: a lot of ten parts never weighs as much as a lot of ten thousand, as it would in an average of row percentages. And a shift with no inspections returns a blank instead of #DIV/0!.
Can DAX count lots, NCRs or serial numbers once each when the log holds a row for every defect?
Yes, with DISTINCTCOUNT, and The Complete Excel Course with AI Integration meets the same problem in its own data. SalesFusion holds a row for each product on an order, so counting rows would overstate the orders; Lesson 170 writes an Orders measure that counts each order number once, then divides sales by it for an average per order. Quality logs share that shape: an NCR with four defects fills four rows, a lot rejected on several characteristics appears several times, and a CMM report gives every measured feature its own line. A distinct count of the NCR number, the lot number or the serial returns the true figure, and total defects divided by the lot count gives defects per lot for any line, supplier or month on the slicers. Without it, a single busy NCR quietly counts as four.
For a Pareto of defect codes, can a measure give each code its share of all rejects and keep it true for any line, supplier or month?
Yes: The Complete Excel Course with AI Integration writes that share-of-total measure, the arithmetic behind every Pareto. In Lesson 170, Sales Percentage of Total by Category divides each category's sales by a grand total worked out with CALCULATE and ALL, where ALL sets the category filter aside so the bottom of the fraction stays the whole. Put defect codes where the categories were and each code shows its share of all rejects; pick a line or a month and the shares are worked out again inside that choice, still summing to the whole. Lesson 172 adds a Top 10 filter to rank products, which in a quality model puts the heaviest defect codes or the worst parts at the top. Excel's own Pareto chart, with its bars and cumulative line, is taught in Lesson 55 in the charts section.
Our CMM and test exports stamp every reading with a time: how does the model give a clean month-by-month trend?
By cutting each timestamp to a date and giving the rows month fields before the model ever sees them, as The Complete Excel Course with AI Integration does in Lesson 159. The date column there is cleared of placeholders and an impossible date, set to Date rather than Date/Time, and joined by year, month name, month number, month start and year-month columns. Dropping the time saves memory and keeps relationships cleaner, and the month number stops a trend from running April, August, December in alphabetical order. Lesson 172 then builds a monthly trend PivotTable from the Data Model with the year above the dates, under the same slicers as the rest of the dashboard. For a quality engineer, that is reject rate or PPM month by month for a line, a supplier or a part family, from readings that arrived stamped to the second.
Quantities in our MES export sometimes arrive as text, with NA where a count should be: will my measures cope?
Yes, export after export: the query fixes each column's type at every refresh, and The Complete Excel Course with AI Integration shows the failure as well as the cure. In Lesson 170 the first Total Sales measure errors; Check Formula in Manage Measures traces the fault to a column held as text, the type is corrected in Power Query and the measure is written again. The correcting is taught in Lesson 158: text turned into decimal numbers, quantities typed as words replaced and set to Whole Number, with NA cleared to true blanks a lesson earlier. Rejected and inspected counts suit Whole Number, as nobody rejects half a part, but measured values need Decimal Number: Lesson 168 warns that a whole number type silently rounds, which on a reading would erase the very deviation you were looking for.
Pass or fail per reading, yield per line: which belongs in the query and which in a DAX measure?
The verdict on a single row belongs in the query, and any rate over many rows belongs in a measure. The Complete Excel Course with AI Integration draws that line by building margin both ways. Lesson 160 adds Profit and Margin as custom columns, a conditional column that labels each sale High or Normal and a column marking returns: logic about one row, applied identically at every refresh. Lesson 170 then writes Margin Percentage as a measure, because a region's or a month's percentage has to come from that group's totals. Quality work splits the same way. A reading judged pass or fail on its limits, a disposition of scrap or rework, or a rejected flag is a column; first-pass yield, reject rate and PPM are measures, recalculated for whatever line, shift or week is in view, so no report can disagree with another about what yield means.
Customers audit our quality figures: what checks stand between a raw export and the reject rate I report?
Three, and The Complete Excel Course with AI Integration builds each one before a figure is trusted. A Group By query in Lesson 161 adds up sales and row counts for every month and region, largest first, giving figures to hold against the system that produced them and making a total that is too good to be true stand out; a line credited with more rejects than parts made surfaces the same way. Then Lesson 168 checks the finished fact table after its merges and appends, filtering key columns for blanks that would otherwise leak into a total. Last comes the measure: Check Formula in Lesson 170 names the column a broken formula trips on. Every cleaning step stays listed in the query in the order it ran, and the raw file is left as the MES wrote it, which is the trail an auditor asks to see.
Can the model put a cost on scrap using the unit cost held in our part master?
Yes, by joining three steps The Complete Excel Course with AI Integration teaches on its own data. Lesson 163 merges a product table into the sales query on the product code through a left outer join, bringing its unit cost beside every row without dropping one. Lesson 160 adds custom columns that do arithmetic along a row, as Profit does from sales and cost. A SUM measure from Lesson 170 then totals the new column for whatever the slicers pick. In a quality workbook, merge the part master's unit cost onto the scrap log, multiply it by the scrapped quantity in a custom column, and one measure gives the cost of scrap by line, supplier, defect code or month. That figure turns a Pareto of counts into a ranking by money lost, often the page that wins a corrective action its budget.
Where would I type a reject-rate measure, and will it look like the formulas I already write?
In Power Pivot's measure dialog, and anyone who writes worksheet formulas will find it familiar. The Complete Excel Course with AI Integration opens it in Lesson 170: Power Pivot, Measures, New Measure, a name and then the formula, with Manage Measures to edit one later and Check Formula to test it. A measure lives in the Data Model rather than in a cell, so it is written once and appears in the field list of every PivotTable built from the model. Where a worksheet formula points at a range, DAX names a table and a column, so a SUM of the inspected quantity column reads almost as you would say it, and DIVIDE takes the two figures you would divide by hand. Anyone fluent in COUNTIFS is most of the way there; the new idea is that the criteria come from the PivotTable's rows and slicers instead of from the formula.
Each CMM run adds thousands of rows: will the workbook stay quick once a year of readings is in the model?
Far quicker than a sheet of lookups and COUNTIFS, because The Complete Excel Course with AI Integration teaches where each piece of the data belongs. The rule in Lesson 162 is to load only the finished output: staging queries stay as connections or go straight to the Data Model, since a workbook that keeps every step on its sheets grows heavy and sluggish. A relationship from Lesson 169 then does once what a lookup copied down every reading would repeat at each recalculation. Keeping the data lean helps as well: Lesson 159 stores dates as Date instead of Date/Time to save memory, and Lesson 168 shows how columns nobody reports on bite back as a model grows, so they go before loading. A year of readings then costs a refresh, not an afternoon of a frozen screen.
Could the model produce our quarterly supplier scorecard?
Yes, and the report lessons of The Complete Excel Course with AI Integration give it a professional finish. With the supplier list related to the receiving log, measures for parts received, parts rejected, PPM and a distinct count of NCR numbers (Lesson 170) sit side by side for each supplier. Lesson 171 shapes such a report: the categories on rows, grand totals switched off, tabular layout so each field has its own column and the sheet exports cleanly, and the measures reordered so the figures readers ask about first come first. For suppliers that means PPM and rejects lead. Lesson 172 adds a ranked view with a Top 10 filter and slicers for year and supplier, so each scorecard is one click from the next. The lessons report sales by product category; a supplier list fits the same layout, and next quarter's receipts reach it at a refresh.
Our MES and QMS already print standard reports: what does a model of my own add?
Questions the standard reports never planned for, answered without waiting for anyone. A system report shows the views its designers chose; a model built in The Complete Excel Course with AI Integration joins exports from different systems on their shared codes and lets you ask across them. SalesFusion shows the result in Lesson 153: a business view where a filter updates the linked detail sheet by itself. Relate receiving rejects, line inspections and the supplier list in the same way (Lesson 169), define reject rate and PPM once as measures (Lesson 170), and every PivotTable built on the model uses the same definitions, so the figure in the supplier review matches the one in the plant review. When the next question arrives, say rejects by part family for one customer, it is a drag in the field list, not a new report request.
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 quality engineers
- Lookups for quality engineers
- PivotTables for quality engineers
- Excel charts for quality engineers
- Excel dashboards for quality engineers
- Conditional formatting for quality
- Data cleaning for quality engineers
- Data validation for quality engineers
- Excel tables for quality engineers
- Text functions for quality engineers
- Date functions for quality engineers
- Dynamic arrays for quality engineers
- Power Query for quality engineers
- Macros and VBA for quality engineers
- Power Automate for quality engineers
- Copilot for quality engineers
- ChatGPT for quality engineers
- Claude in Excel for quality engineers
Power Pivot and DAX for other jobs
- Power Pivot & DAX for quantity surveyors
- Power Pivot and DAX for civil engineers
- Power Pivot and DAX for construction
- Power Pivot & DAX for health and safety
- Power Pivot and DAX in document control
- Power Pivot and DAX for production
- Power Pivot and DAX for M&E engineers
- Power Pivot for industrial engineers
- Power Pivot and DAX for every job