The Complete Excel Course with AI Integration

Power Pivot and DAX for production managers

A production report draws on several files: the shift log, the product master with its standard cycle times, the line list, the scrap records and the plan. The Complete Excel Course with AI Integration teaches production managers to relate them in a Power Pivot model and measure them with DAX on SalesFusion, an industry-standard project, and this page picks out the lessons that build the model, its measures, its checks and the dashboard the morning meeting reads.

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:

  • Relate a shift log to the product master and the line list in a Power Pivot data model, with one-to-many relationships drawn in Diagram View in place of lookup columns filled down every row.
  • Write DAX measures for good output and scrap with SUM, and a scrap rate with DIVIDE that weighs each line by its volume and leaves a blank, not an error, where a line never ran.
  • Show each line's or product family's share of plant output with CALCULATE and ALL, a share that stays right whichever line, shift or month a slicer picks.
  • Count work orders once with DISTINCTCOUNT, however many shift rows each one fills, and set average good units per work order beside the count with DIVIDE.
  • Reshape a planning grid of target units with a column per month into a long table for the data model with Unpivot, so the column added next month never breaks the query.
  • Tie the model's output back to the source system with a Group By query of totals and row counts by month, and trace a failing measure to a column still held as text.
  • Report from the data model: a tabular PivotTable that leads with the figure the meeting asks for first, a Top 10 filter for the products with the most scrap, and slicers for line and year wired to every PivotTable through Report Connections.

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 a folder of messy sales exports, its second half is the model a plant can copy: a fact table checked for blanks, two lookup tables related in Diagram View, six DAX measures running from plain totals to shares and distinct counts, and a dashboard of four PivotTables that one slicer click moves together.

  • Project 05

    SalesPlusPerformance

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

    Built for order-level sales data, it is where the PivotTable work behind a model's report begins: fields and Value Field Settings, grouping by date, slicers and Refresh All, used in just the same way when the PivotTables read a data model of output and scrap.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Built for budget against actual spending, it shows where a plan of target units leads: plan and actual side by side, variance and percent variance in colour-coded number formats, and a dashboard a manager filters with slicers.

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 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 shift records already live in Excel tables and a PivotTable holds no fears: SalesFusion opens on the finished report and then builds towards it in the order a model is made. New to tables or PivotTables? Take Lesson 19 and the PivotTable lessons from Lesson 57 first, or begin at Lesson 1 if Excel itself is new. Already cleaning exports in Power Query? Go straight to Lesson 168, where the fact table and the model begin; from there on, the relationships and measures need Excel for Windows.

11 of 186 lessons · 1 h 12 min

15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min The finished SalesFusion report comes first: filter its business view and the linked detail sheet follows by itself. Its idea carries this whole page, Power Query makes data usable and the data model makes it useful, which for a plant means a shift log you can trust, joined to everything that describes it.
  1. 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 1 of 21 lessons · 7 min Dates a model can group: placeholders and an impossible day cleared, Date chosen over Date/Time so the clock time of each shift record drops away, and year, month name, month number, month start and year-month columns, so output by month reads in calendar order.
  1. 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 The work done before the model: custom and conditional columns for rules that judge one row at a time, a zero test that stops a ratio dividing by nothing, a Group By query of totals and row counts by month and region to tie back to the source system, and Close and Load choices that keep staging queries as background connections.
  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 5 of 21 lessons · 37 min The model at the heart of this page: one fact table merged with its lookups, appended with history and checked for blanks; three tables loaded to the Data Model and related in Diagram View; six DAX measures built on SUM, DIVIDE, CALCULATE with ALL and DISTINCTCOUNT; a tabular report; and a dashboard of four PivotTables and four slicers. Drawing the relationships and writing the measures take Power Pivot, and those lessons need Excel for Windows.
  1. 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
  2. 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 min
  3. 170 DAX measures in Power Pivot Total sales, margin percent and percent of total 10 min
  4. 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
  5. 172 Interactive Excel dashboard Data model PivotTables, slicers and styling 10 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 8 min The plan in the right shape: a budget export with a column per month unpivoted into rows, pivoted on its metric into budget sales and target units and totalled by month, the same treatment a planning grid of target units per line needs before it joins the model.
  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.

Why would a production manager use Power Pivot and DAX for the plant's output, scrap and downtime figures?

Because one model answers every cut of those figures the meeting can ask for, and The Complete Excel Course with AI Integration from Coding Liquids teaches you to build it on SalesFusion, an industry-standard project designed after talking with people from many different industries. Its model has the shape a plant's reporting needs: one table of transactions related to the lists that describe them, measured in DAX and read through PivotTables with slicers. In your plant the transactions are shift records and the lists are the product master and the lines, and a downtime log can hang off the same line list. The 11 lessons picked out for a production manager here, 1 hour 12 minutes of video, run from clean dates and checked totals to relationships in Diagram View, measures written with SUM, DIVIDE, CALCULATE, ALL and DISTINCTCOUNT, and a dashboard whose slicers move every table at once. You build each step yourself from the course's sales files, with the finished workbook to check your own against.

Shift log, product master and line list: how do the three become one model?

Through relationships, drawn once in Power Pivot's Diagram View. In The Complete Excel Course with AI Integration, Lesson 168 first assembles the fact table: product and region details merged in by code, the history appended, the key columns checked for blanks. Lesson 169 then loads it to the Data Model beside its two lookup tables and drags each code onto its partner, region code onto region code and product ID onto product ID. Each link is marked 1 at the lookup end, where a code stands once, and with an asterisk at the fact table, where it repeats row after row. For your plant, the fact table is the shift log and the lookups are the product master and the line list. Every PivotTable built from the model can then show a product's family or a line's department beside the shift figures, with no XLOOKUP filled down the log and nothing to copy into next month's file.

Averaging every shift's scrap percentage gives a plant figure the quality team disputes: what does a DAX measure do differently?

It divides one total by another, so every shift weighs in proportion to what it made. A short night shift with a bad spell on the line can post a scrap percentage several times the day shift's, and a plain average of percentages lets that small run drag the plant figure up. The Complete Excel Course with AI Integration writes ratios the sound way in Lesson 170: Margin Percentage and average order value are DIVIDE measures, one total over another, recalculated for every line, month or slicer setting. Scrap rate follows the same pattern, total scrap over total units made, so the plant figure is the plant's real scrap over its real output, and each line's figure is that line's own. DIVIDE also returns a blank instead of #DIV/0! for a line that never ran. Iterators such as SUMX are not among the course's measures, and a rate built from two totals has no need of them.

Can OEE be a measure that holds for one line, one shift or the whole plant?

Yes: OEE is three ratios multiplied, and The Complete Excel Course with AI Integration teaches every piece of the measure. Quality is good units over total units, a DIVIDE written the way Lesson 170 writes Margin Percentage. Availability is run time over planned time, two more totals divided. Performance needs each product's ideal cycle time on every row: Lesson 168 merges product details into the fact table by code, and a custom column of the kind Lesson 160 adds for profit multiplies that cycle time by the units made, giving an ideal run time for a measure to set against actual run time. Multiply the three and the result follows whatever a slicer picks: one line, one shift, one week or the plant. OEE has no lesson of its own, so the assembly is yours, and because every part is a ratio of totals, a short shift never skews the plant's figure.

A work order that runs over several shifts fills several rows of the log: can the model count it once?

Yes: DISTINCTCOUNT counts each work order once, and The Complete Excel Course with AI Integration meets the same problem in its sales data. There an order has a row for every product on it, so a row count overstates the orders; Lesson 170 writes an Orders measure with DISTINCTCOUNT on the order ID, and it counts each order once whatever the report is filtered to. A shift log repeats work orders the same way, a row for every shift a job ran on and sometimes for every line it touched. A distinct count of the work order number gives the jobs worked this week, by line or product family, and the lesson's average order value, a DIVIDE of a total by that count, becomes average good units per work order. Both stay true when a supervisor narrows the dashboard to one line, where a count of rows would go on overstating them.

Can each line's share of the plant's output stay right when a supervisor picks one shift on the slicer?

Yes: CALCULATE with ALL holds the total steady while the slicer narrows everything else. The Complete Excel Course with AI Integration builds the measure in Lesson 170 as Sales Percentage of Total by Category: DIVIDE sets each category's sales against a total that CALCULATE works out with the category filter lifted by ALL, so the shares make up the whole and stay right when a slicer picks a region or a year. On a plant model the category becomes the line or the product family. Pick the night shift and each line shows its part of that shift's output; pick a month and the shares rework for that month alone. The same pattern on scrap shows which line carries most of the plant's waste. Formatted with Percent Style, as Lesson 172 does, a raw fraction turns into a share the meeting reads at a glance.

The MES and the ERP write the same product code differently: will the relationship still match them?

Yes: The Complete Excel Course with AI Integration teaches the clean-up that gives both codes one form, and it runs before any relationship is drawn. A relationship in Lesson 169 pairs rows whose codes hold the same value, so a product code written with a hyphen in the MES and without one in the ERP never meets its partner. SalesFusion's product IDs arrive with hyphens, stray spaces and mixed capitals, and Lesson 157 trims them, sets them in capitals and strips the hyphens with Replace Values. The capitals count for the merges on this path, since Power Query treats North and NORTH as two different regions, a point the lesson's quiz makes. Run the same steps on both exports and the two systems share one key. Where they number products differently altogether, a small mapping table merged in by code, as Lesson 163 merges the product list, carries one code across to the other.

Planning sends target units with the months running across the top: what does the model do with that grid?

Unpivot turns it into a long table of month and target, the shape a data model reads, and The Complete Excel Course with AI Integration teaches it on a grid of that very kind in Lesson 173. The lesson's export holds budget sales and target units by region and category, with a column for every month. Unpivot Other Columns keeps the descriptive columns fixed and folds the months into rows, a custom column turns the month text into a real date, Pivot Column sets budget sales and target units side by side again, and Group By totals them by month, leaving a compact table for the model. Because the query names no month, the column planning adds next month comes in at the next refresh with nothing edited. In your plant the region and category become the line and the product family, and the target units are the plan itself, held in the shape the model needs.

Shift records carry a date and a clock time: what does the model need from the date column?

A clean date without its clock time, plus the month fields every production report sorts by, and The Complete Excel Course with AI Integration builds them all in Lesson 159. The lesson first clears the entries that would break the conversion, placeholders such as n/a and not a date and a day no calendar has, then sets the column as Date/Time and finally as Date. Date rather than Date/Time drops the time of day, saves memory and keeps relationships cleaner, which counts on a shift log where every row carries a timestamp. Year, month name, month number, month start and year-month columns follow. Without the month number, months sort alphabetically, April before January; with it, output runs in calendar order. On the dashboard of Lesson 172, Year sits above the date in the Monthly Trend table, so the meeting opens a year and reads its months in turn.

A below-plan flag on each shift row and a scrap rate for the month: which does Power Query build and which the model?

The flag belongs to the query and the rate to the model, and The Complete Excel Course with AI Integration draws that line clearly. A judgement about one row, such as whether a shift fell below plan, is a column: Lesson 160 adds Profit as a custom column and HighValue as a conditional column that labels each sale High or Normal, and logic built there runs the same on every refresh, so no two reports disagree. A figure that has to be right for any selection, such as scrap rate for a line, a month or the plant, is a measure: Lesson 170 writes Margin Percentage with DIVIDE so it recalculates for every filter and slicer. A rate stored as a column is right for its own row and wrong once a PivotTable adds rows together. Keep to that division and the model's figures agree with one another however the report is cut, from a single shift to the whole quarter.

My model's output for last week comes out lower than the ERP's figure: where do I start looking?

At the rows that never reached the total, and The Complete Excel Course with AI Integration builds the checks that find them. The first is a control query: Lesson 161 references the cleaned data and uses Group By to total it and count its rows for every month and region, biggest first, so each figure can be laid beside the system's own report. A month that comes out as null points to dates the raw file could not read, a common reason for output that falls short. The second is the data type: in Lesson 170 the first measure fails because amounts sat in the model as text, a fault traced with Check Formula and fixed back in Power Query. The third follows every merge and append, where Lesson 168 filters the key columns for blanks. Run all three on your own model and the gap with the ERP is found row by row, before the meeting sees a figure.

Every shift adds rows for each line and product: will the plant workbook keep getting heavier?

It stays light, because the model holds the rows and the sheets hold only the report, the way The Complete Excel Course with AI Integration builds it. Lesson 162 sets the golden rule: load only the finished, cleaned table, never every staging step, or the workbook grows slow and bloated; the staging and check queries stay as connections, ready for the model. Lesson 168 removes the columns the report will never use, a source-file name among them, because unneeded columns weigh on a growing model, and Lesson 159 stores dates without their clock time to save memory. Then Lesson 169 replaces lookup columns with relationships, so no formula is filled down a log that gains rows for every line on every shift. The PivotTables and slicers read the model directly, and the shift log itself never has to sit on a worksheet.

What does the morning meeting see once the report runs from the model?

One screen that answers its questions in the order they are asked, built in Lesson 171 and Lesson 172 of The Complete Excel Course with AI Integration. The first lesson turns a PivotTable from the Data Model into a focused report: tabular form so each field has its own column, grand totals off, and the measures reordered so the figure people ask about first leads, profit in the lesson and scrap rate on your shop floor. The second adds three more PivotTables from the same model, a Top 10 filter for the products that matter most, matching headings and styles, and slicers whose Report Connections tie each one to all four tables. On a plant model the four views become output by product family, output by line, a monthly trend and the products with the most scrap, and one click on the line slicer moves every view at once, with no sheet rebuilt for each supervisor.

I keep the shift log as an Excel table and already build PivotTables from it: where on this path do I begin, and what PC does it need?

Begin at Lesson 153, and plan on a Windows PC for the model itself. Your table and PivotTable habits are the right footing: The Complete Excel Course with AI Integration takes them into SalesFusion, where the overview shows the finished report before anything is built, and the path then runs through dates, row-level logic, control totals and loading before the model. If your log already arrives clean, move quickly to Lesson 168, where the fact table is assembled. The Power Query steps on this path run in Excel on Windows or a Mac; from Lesson 169 the relationships and DAX measures are Power Pivot work, which the course's requirements tie to Excel for Windows, and the report and dashboard lessons build on that model. The whole path is 1 hour 12 minutes, and lifetime access keeps it open for the day a new line or product family joins the model.

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.