The Complete Excel Course with AI Integration
Power Pivot and DAX for inventory controllers
Stock reports held together by lookup columns and SUMIFS grow slower and more fragile with every week of movements. The Complete Excel Course with AI Integration replaces them with a data model on SalesFusion, an industry-standard project: movements related to the item master and the store list in Power Pivot, DAX measures for value, shares and counts, and one dashboard a slicer filters by store. This page picks out those lessons and the Power Query steps that feed them.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Relate a movement log to an item master and a store list in Power Pivot's Diagram View, with one-to-many relationships on the item code and the store code in place of lookup columns.
- Prepare the movement table in Power Query before it reaches the model: line values from quantity and unit cost, signed quantities for receipts and issues, and month columns that sort in calendar order.
- Write DAX measures for a stock report: SUM for quantities and value, DISTINCTCOUNT for receipts and items counted once, and DIVIDE for ratios that stay blank instead of failing on a zero.
- Show each category's share of the stock value with DIVIDE, CALCULATE and ALL, worked out afresh for whichever store a slicer picks.
- Prove the model before it replaces the old report, with a Group By query of totals and row counts and Check Formula to trace a faulty measure to its source.
- Build a stock dashboard from the Data Model: PivotTables by category, store and month, a Top 10 filter for the items that hold most value, and slicers wired to every table through Report Connections.
- Keep the model current, with each new batch of movements carried through every query, table and measure at a refresh.
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 on raw sales exports and two lookup files, it walks an inventory controller through the whole chain a stock model needs: a fact table at the centre, lookup tables related to it in Power Pivot, DAX measures for totals, shares and distinct counts, and a dashboard that one slicer click filters.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Its PivotTables on order-level sales data are what a Data Model report grows out of: fields, date grouping, slicers and Refresh All, the habit that keeps every table and measure current once new movements are booked.
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 10 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 stock data already sits in Excel tables and you can build a PivotTable: SalesFusion opens with the finished report and its model, and this path follows the project from the first prepared column to the dashboard. New to PivotTables? Take them from Lesson 57 first, or start at Lesson 1 if Excel itself is new. Power Query already part of your week? Jump to Lesson 168, where the fact table is built and the model begins.
11 of 186 lessons · 1 h 10 min
15 SalesFusion: advanced data tools and a Power Query modelling system The goal shown first: the finished SalesFusion report, whose business view updates a linked detail sheet, and the data model introduced as the map of how tables relate. Hold that picture while you build a stock model, with movements in the middle and items and stores around them.
- 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 Month columns made inside the query, year, month name, month number, month start and year-month, so a model reports movements by period and sorts the months in calendar order rather than alphabetically. Movement dates take exactly the same steps as the sale dates of the lesson.
- 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 The row-level work that belongs before the model: custom and conditional columns that calculate and flag each line, a Group By query of totals and row counts that proves the data, the Close and Load choice that sends a table to the Data Model without filling a sheet, and a merge with a left outer join that brings lookup details onto every row. For stock, that means a line value, a signed quantity, a control total per store and the unit cost from the item master.
- 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
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system The model itself, in Excel for Windows, which Power Pivot needs: one fact table built from history and folder data and checked for blanks, three tables related in Diagram View, six DAX measures from SUM to DISTINCTCOUNT, a tabular PivotTable report from the Data Model, and a dashboard of four PivotTables and four slicers joined through Report Connections. Movements, items and stores take the places of sales, products and regions.
- 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.
My stock reports have outgrown SUMIFS and lookup columns: is Power Pivot and DAX the next step for an inventory controller, and where is it taught?
Yes, and 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. Stock workbooks tend to grow the same way: a movement log with lookup columns dragged down every row to fetch the category, the unit cost and the store name, and SUMIFS totals that recalculate across the whole log at every change. Power Pivot replaces the lookup columns with relationships between tables (Lesson 169), and DAX replaces the scattered totals with measures written once that answer for any store, category or month (Lesson 170). This page picks out 11 lessons, 1 hour 10 minutes in all, from the prepared tables that feed the model to a dashboard built on it. The lessons relate sales orders to product and region lookups; a movement log, an item master and a store list fit the same three-table shape.
What does a stock data model look like, and how are its tables joined?
A movement table in the middle with lookup tables round it, joined on codes: the shape The Complete Excel Course with AI Integration builds in Power Pivot's Diagram View (Lesson 169). SalesFusion places its sales table between a product lookup and a region lookup and drags each code onto its match, creating two one-to-many relationships. On the line between two tables, a 1 marks the lookup side, where each code appears once, and an asterisk marks the side where it repeats. For stock, the movement log takes the centre, the item master joins it on the item code and the store list on the store code, so every movement can be reported by category, supplier or store without a single lookup formula. Periods come from year and month columns built in the query (Lesson 159); a separate calendar table, common in larger models, is not built in the lessons.
My stock PivotTables already work: what does Power Pivot add that an ordinary PivotTable cannot?
Several tables in one report, and measures that keep one meaning everywhere. An ordinary PivotTable reads a single table, so the category, the unit cost and the store name must first be copied onto every movement row, usually by lookup formulas filled down the whole log. A PivotTable built from the Data Model, as The Complete Excel Course with AI Integration builds one in Lesson 171, takes its rows from one table and its figures from another: in the lesson, Category comes from the product lookup while the measures total the sales table, because the relationship carries the filter across. The model also brings DISTINCTCOUNT, which counts each order once however many lines it has, and named measures defined once and reused in every report (Lesson 170). SalesPlusPerformance teaches the ordinary PivotTable first (Lesson 57), so the difference is plain by the time you meet the model.
Should a stock figure be calculated in Power Query or in DAX?
Both, each for its own kind of figure, and The Complete Excel Course with AI Integration teaches the two side by side in one project, so you learn where each belongs. Power Query works row by row, once per refresh: a line value from quantity and unit cost, a quantity made negative for an issue, a flag on each line, a month column. SalesFusion builds logic of this kind as custom and conditional columns, profit, margin and a high-value flag among them (Lesson 160). DAX works on totals at the moment a report asks for them: stock value for whichever store is picked, a category's share of the whole, a count of distinct items (Lesson 170). One test settles most cases: a figure that belongs to a single movement goes in the query, and a figure that changes with what the reader filters becomes a measure. Get the split right and the model stays lean, quick and easy to check.
Can a DAX measure give stock on hand by item and store from a log of receipts and issues?
Yes, once every issue is held as a negative quantity, and The Complete Excel Course with AI Integration teaches both halves of the method. In the query, a conditional column gives each movement its sign, receipts positive and issues negative, the same kind of rule SalesFusion writes when it labels a negative sale as a return (Lesson 160). In the model, a SUM measure over that column, built as the lesson builds Total Sales (Lesson 170), adds every movement for the item and store in each cell of the PivotTable. Over all dates, with the opening stock entered as the first receipt, that is the stock on hand; with one month picked on a slicer, it is that month's net change. Closing balances carried month by month, the snapshot and running-balance patterns of the DAX forums, need date-based DAX beyond these lessons; stock on hand today, for any store and any item, is yours from them.
The unit cost lives in the item master, not on the movement log: how does the model value stock?
In two steps, both taught in The Complete Excel Course with AI Integration. First the cost reaches each movement: a Power Query merge with a left outer join brings columns from a lookup table onto every row by its code, as SalesFusion brings product details onto each sale (Lesson 163), and a custom column multiplies quantity by unit cost to give the line its value (Lesson 160). Then the model totals it: a SUM measure over the value column (Lesson 170) answers for every store, category and month the report is cut by, and a percentage-of-total measure shows where the value sits. Keeping the multiplication in the query values each line once, at refresh, so the measure only has to add. Costing methods such as FIFO or weighted average are your system's rules and are not taught; whatever cost your item master carries, the model applies to every line.
Which DAX measures should a stock report have first, and does the course build them?
Six, and The Complete Excel Course with AI Integration builds every one of them in the Power Pivot window (Lesson 170). Total Sales is a SUM, and Total Profit totals the profit column built in the query; on stock data they become the quantity issued and the value held. The percentage of total by category uses DIVIDE, CALCULATE and ALL to set a category against the grand total, and only the category filter is lifted, so with one store picked on a slicer every share is worked out within that store. Orders is a DISTINCTCOUNT, which becomes the number of receipts or of different items moved. Margin Percentage and the average order value are DIVIDE measures, which become ratios such as value per receipt. Each is created through New Measure, edited in Manage Measures and tested with Check Formula, then laid out by category in a tabular report with the most-asked figures first (Lesson 171).
A goods receipt has a row for every item on it: how do I count receipts rather than rows?
With DISTINCTCOUNT, which The Complete Excel Course with AI Integration teaches on exactly that problem. In SalesFusion an order holds a row per product, so a count of rows overstates the orders; the Orders measure applies DISTINCTCOUNT to the order ID and counts each order once (Lesson 170). A movement log has the same shape: a delivery note, a goods receipt or a transfer between stores spreads across as many rows as it has items. Point the measure at the document number and it gives the true count of receipts in a month or of transfers into a store; point it at the item code and it gives how many different items moved, a quick read of how wide each store's activity really is. Set beside total value with DIVIDE, it yields the value per receipt, built in the lesson as the average order value.
Slow movers with no issues fill my ratio columns with #DIV/0!: does DAX deal with a zero?
Yes: DIVIDE returns a blank where a plain division fails, and The Complete Excel Course with AI Integration builds its ratio measures with it (Lesson 170). Margin Percentage and the average order value are both DIVIDE measures in the lesson, and its quiz makes the point directly: on a zero, DIVIDE gives a blank, not an error. On a stock report, an item with no issues this month shows an empty cell in a usage ratio instead of an error that spreads into every total built on it. The worksheet answer, IFERROR round each formula, is taught too (Lesson 12), but it has to be added cell by cell; a measure is written once and protects every PivotTable that uses it. The same lesson shows Check Formula tracing a failing measure to its cause, a column stored as text, which is then fixed where it started, in Power Query.
Before the model replaces our SUMIFS stock report, how do I prove its figures agree?
With the two checks The Complete Excel Course with AI Integration builds into SalesFusion. Before data reaches the model, a Group By query totals it and counts its rows by month and region, biggest first, so a figure that looks too good stands out and every total can be tied back to its source (Lesson 161); for stock, group by month and store and set the result beside last month's report. Inside the model, Manage Measures and Check Formula show what is wrong with a measure: in the lesson a total that will not work is traced to amounts stored as text, the column's type is fixed in Power Query and the measure is rebuilt (Lesson 170). Run the old report and the model side by side for a period, switch when the two agree, and you can show anyone who asks exactly how each figure was reached.
When next week's movements arrive, does the model update, or do I rebuild it?
It updates: one refresh carries new rows through every query, the model and each measure, and The Complete Excel Course with AI Integration builds the chain that makes that happen. The history and the files saved in a folder are combined into one fact table and held as a connection (Lesson 168), which is loaded into the Data Model (Lesson 169), and the folder query takes in any new file at the next refresh (Lesson 166). Measures live in the model, not in cells, so nothing is copied down: they recalculate for whatever the report shows. One habit stays yours, taught with the PivotTables: they do not update by themselves, and Refresh All brings every one in the workbook up to date at once (Lesson 65). Build the model once and the weekly stock report shrinks to a refresh and a careful look at the figures.
What will I have built at the end, and how does it carry over to stock?
A working reporting system, and The Complete Excel Course with AI Integration includes the finished SalesFusion workbook to set beside yours. It holds one fact table fed by cleaned queries, a model of three related tables, six DAX measures and a dashboard of four PivotTables from the Data Model: sales by category, sales by region, a monthly trend with the year above the dates, and the products ranked by a Top 10 filter (Lesson 172). Four slicers, for category, channel, year and region, are joined to all four tables through Report Connections, so one click filters the whole report. Rebuilt on stock, the same layout gives value by category, by store and by month, the items that hold the most value, and a store slicer that moves every table together. The industry-standard project is your pattern; your movement log, item master and store list are what you pour into it.
Is DAX harder to learn than the SUMIFS I already write, and do I need SQL as well?
It builds directly on SUMIFS, and SQL never comes into it. The DAX in The Complete Excel Course with AI Integration reads like an Excel formula: a name for the measure, then a function, SUM of a column, DIVIDE of two figures, DISTINCTCOUNT of a code (Lesson 170). The one new idea is that a measure is worked out separately for every cell of the PivotTable, under that cell's store, item and month, which is why one measure does the work of a whole grid of SUMIFS. CALCULATE with ALL is how a measure steps outside that, and the lesson spends real time on it. SQL, the language of databases often weighed against DAX, is not needed: Power Query brings the tables in and the model holds them inside Excel. A storekeeper who writes SUMIFS today already has the habits this lesson builds on.
How long until a stock model of my own is running, and which lessons need a Windows PC?
About 1 hour 10 minutes of lessons, and the Power Pivot ones need Excel for Windows. In The Complete Excel Course with AI Integration the model and its DAX measures (Lesson 169 and Lesson 170) are where Windows comes in, as the course's requirements say, because Power Pivot is part of Excel on Windows; the Power Query preparation on this path is open to a Mac running Excel from Microsoft 365. The SalesFusion dataset and the finished workbook come with the course, so every step can be checked against a working answer before you rebuild it on your own movement log. The first measures can run on your own data well before the dashboard lesson, since the model needs only a clean movement table and two lookup tables. Lifetime access keeps the lessons open for the next report you want, and completing the course earns a Certificate of Completion an employer can verify.
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
- Formulas for inventory controllers
- XLOOKUP and VLOOKUP for inventory
- Pivot tables for inventory control
- Charts for inventory controllers
- Dashboards for inventory controllers
- Conditional formatting for inventory
- Data cleaning for inventory controllers
- Data validation for inventory control
- Tables, sort and filter for inventory
- Text functions for inventory controllers
- Date functions for inventory controllers
- Dynamic arrays for inventory controllers
- Power Query for inventory controllers
- Excel macros and VBA for inventory
- Power Automate for inventory
- Copilot in Excel for inventory control
- ChatGPT for inventory controllers
- Claude in Excel for inventory