The Complete Excel Course with AI Integration

Power Pivot and DAX for procurement officers

Spend questions cross tables: purchase lines, the supplier list, the item catalogue, the months. Lookup columns and grids of SUMIFS answer them until the export outgrows them. The Complete Excel Course with AI Integration replaces that with a data model, related in Power Pivot and measured with DAX on SalesFusion, an industry-standard project. This page picks out those lessons: month fields, line rules, control totals, relationships, spend measures, a report, a dashboard and a model-ready budget.

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 purchase lines to a supplier list and an item catalogue in Power Pivot's Diagram View, each code once on the list side and many times on the order side, in place of names copied down the export with VLOOKUP.
  • Write DAX measures for total spend and for each category's share of it with SUM, DIVIDE, CALCULATE and ALL, so every figure recalculates for the supplier, year or category a slicer picks.
  • Count purchase orders rather than order lines with DISTINCTCOUNT, and divide spend by that count for the average value of an order to each supplier.
  • Give every purchase line a year, a month name, a month number and a year-month in Power Query, so the model reports spend month by month in calendar order.
  • Label lines above an approval threshold and credit notes with a negative amount as conditional and custom columns, before the model ever reads them.
  • Prove each month's spend and line count with a Group By query, and trace a failing measure with Check Formula to an amount column held as text.
  • Build a tabular spend report from the Data Model and a dashboard of four PivotTables, with four slicers wired to every table through Report Connections.
  • Reshape a category budget with a column per month into a long table of month and amount with Unpivot, ready to stand in the model beside actual spend.

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.

    Its Power Pivot half is a spend model in miniature: one fact table of lines drawn from two years of history and a folder of files, related to two code lists, six DAX measures and a dashboard on top. Read its product list as your item catalogue and its region list as your supplier or site list.

  • Project 05

    SalesPlusPerformance

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

    Practice for the reports a model feeds: a PivotTable dragged together from order-level data, months grouped, slicers that narrow it by category and Refresh All, every one of which a report on the Data Model reuses as it stands.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Spend against budget worked out with formulas before you take it into a model: SUMIFS across a budget table and an actuals table, variance and percent variance, then PivotTables and slicers, the comparison a category budget review asks for.

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 Excel tables and PivotTables are part of your week: SalesFusion sets out the model there, and this path takes up the lessons that shape it. The Power Query steps in between, from importing a CSV at Lesson 155 to combining a folder at Lesson 166, build the tables the model reads, so take them first if queries are new to you. Unsure of PivotTables? Begin at Lesson 57. New to Excel? Begin at Lesson 1. Already loading queries to the Data Model? Go straight to Lesson 169.

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 Where SalesFusion is heading: the finished report toured and filtered, and the data model introduced as the map of how its tables relate. For a buyer it sets the target early, one model in which spend by supplier, item and month answers to the same figures.
  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 The month fields a spend model reports by: year, month name, month number, month start and year-month added from one date column, typed as a date without the time so the model stays lean, with the month number there to keep a monthly report in calendar order instead of alphabetical.
  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 Rules and proof before the model: custom and conditional columns that work out a figure and label a line, a Group By query that totals every month and region with its row count so an export can be tied back to the system, and Close and Load, which keeps staging queries as connections and sends only finished tables to the grid 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 5 of 21 lessons · 37 min The model and what it reports, in Power Pivot lessons that need Excel for Windows: a fact table built from history and a folder of files and checked for blanks, three tables related in Diagram View, six DAX measures from total sales to distinct orders, a tabular report with profit first, and a dashboard of four PivotTables under four connected slicers. The lessons model sales; purchase lines, a supplier list and an item catalogue relate the same way.
  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 Unpivot for a budget that arrives with a column per month: budget sales and target units turned into rows of month and amount, given a true month start date and grouped into a compact table that the data model reads beside actuals.
  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.

Power Pivot and DAX for procurement officers: what does a data model add to spend analysis, and where is it taught?

It lets one set of figures answer every spend question at once, 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. Purchase lines, a supplier list and an item catalogue are three tables; Power Pivot relates them once by their codes, and DAX measures total, divide and count across all three for whatever the report is filtered to. No column of lookups is copied down the export, and no fresh block of SUMIFS is written for each new view. This page picks out the 11 lessons that build such a model, 1 hour 12 minutes in all, from the month fields and control totals it rests on to the measures, a report, a dashboard and a budget grid made ready for it. Power Pivot needs Excel for Windows, and the finished workbook comes with the course to compare against.

My spend sheet pulls supplier names and categories in with VLOOKUP: how does Power Pivot join the tables instead?

By relationships drawn once, so the lookup columns can go. In Lesson 169 of The Complete Excel Course with AI Integration the fact table sits between a product list and a region list in Power Pivot's Diagram View, and each pair is related by dragging a code column onto its partner. A 1 marks the list end, where each code appears once, and an asterisk the line end, where it appears many times. The lesson puts the gain plainly: a relationship replaces a VLOOKUP dragged down 10,000 rows. For purchasing, your order lines take the fact table's place, the item catalogue the product list's and the supplier list the region list's. A PivotTable from the Data Model then sets a catalogue category or a supplier name beside amounts from the lines with no helper column (Lesson 171). The course also teaches the other route, a Power Query merge with a left join (Lesson 163), which writes the names into one flat table.

Which DAX measures turn a purchase export into spend figures?

Six, built in Lesson 170 of The Complete Excel Course with AI Integration from Measures and New Measure, and every one has a purchasing twin. The SUM of the amount column, Total Sales in the lesson, is your total spend. A second sum, Total Profit, shows how any column of figures becomes a measure, and Margin Percentage divides one total by another with DIVIDE, blank rather than broken when the bottom is zero: point that shape at a savings column and it reports savings as a share of spend. The category share leans on CALCULATE with ALL. Orders counts distinct order IDs, so a purchase order of many lines stays one order, and AOV turns spend into the value of an average order. Because they are measures, not cells, each follows the PivotTable row or slicer it sits under: one definition serving a supplier, a site, a month or the whole year.

Many small orders go to the same suppliers: can the model show order counts and average order value by supplier?

Yes, and that view is where consolidation work starts. The Orders measure in Lesson 170 of The Complete Excel Course with AI Integration counts each order ID once with DISTINCTCOUNT, so an order spread over several lines still counts as one, and AOV divides total sales by that count, with DIVIDE giving a blank for a period with no orders. Put suppliers on the rows of a PivotTable from the Data Model and the two measures show, for each one, how many orders were raised and what an average order was worth. Dozens of low-value orders to one supplier point to a framework agreement or a catalogue; a handful of large ones point to the negotiating table. Lesson 172 applies the Top 10 value filter to products; on your report it cuts the list to the ten suppliers carrying the most spend. The lessons count sales orders; purchase orders are counted by exactly the same measure.

Should a rule such as an approval threshold live in Power Query or in a DAX measure?

In Power Query when it describes one line, in DAX when it depends on what the report shows, and The Complete Excel Course with AI Integration draws that line on a single project. In Lesson 160 SalesFusion adds a conditional column that labels a line High at 500 or more and Normal below, a custom column that marks a negative amount as a return, and profit and margin worked out row by row. For a buyer, the same columns label every line above your sign-off limit and pick out credit notes, which reach a purchase export as negative amounts; the labels then serve as row fields and slicers. What a filter changes, total spend, a category's share, the number of orders, belongs in the measures of Lesson 170, worked out afresh for each view. Written that way, a rule set once reaches every report, and a ratio comes from totals rather than an average of line ratios.

When a slicer narrows the report to one year, does each category's share of spend still come out right?

Yes, because the share is a measure, built in The Complete Excel Course with AI Integration so that the whole always means the whole of what is on screen. Sales Percentage of Total by Category, in Lesson 170, divides each category's figure by a total worked out with CALCULATE and ALL: ALL tells that one calculation to set aside the category filter, so the bottom of the fraction covers every category, not only the one on the row. Pick a year on a slicer and the year filter still holds, so each share is a share of that year's spend. A percentage typed against a grand total cell would need rewriting for every view. For procurement this is the category mix: which categories take most of the money, and whether a sourcing project moved the mix from one year to the next, read with a click instead of a rebuilt sheet.

Seasonal buying shapes our year: will the model report spend by month and put two years side by side?

Yes: the month fields are made before the model, and the comparison comes from the layout. Lesson 159 of The Complete Excel Course with AI Integration gives every row a year, a month name, a month number, a month start and a year-month, and the month number is there for a reason the lesson spells out: without it, months sort alphabetically, so April lands before January. Lesson 168 builds the fact table from two years of history plus a folder of newer files, so both years sit in one table. In the dashboard of Lesson 172, the Monthly Trend PivotTable places the year above the sale date, and a Year slicer narrows every table together. For a buyer that means seasonal spend and last year's run rate beside this year's, read from the model. A separate calendar table and DAX time-intelligence functions are not among the lessons; these fields carry monthly spend reporting without them.

Our category budgets arrive as a grid with a column per month: can they stand in the model beside actual spend?

Yes, once Unpivot has reshaped them, and The Complete Excel Course with AI Integration teaches the reshaping on a real budget export. Lesson 173 takes a wide file with one column per month, holding budget sales and target units, and turns it into rows of year-month and amount with Unpivot Other Columns. That command names no month, so a column added for a later month cannot break the query. A true month start date replaces the text, Pivot Column splits the budget from the targets and Group By totals them by month, leaving a compact table the data model can read. Setting budget beside spend then follows, and FinanceGuard, from Lesson 115, builds that comparison on worksheet formulas: SUMIFS over a budget table and an actuals table, variance, percent variance and slicers. A variance measure across two related tables has no lesson of its own; every piece it needs is taught here.

Before spend figures reach the category managers, how do I prove the model matches the ERP?

With a control query and a formula check, both taught in The Complete Excel Course with AI Integration. Lesson 161 builds a reference query beside the main one, groups it by year-month and region and returns total sales and a count of rows for each, biggest first, so a figure that looks too good rises to the top: one region outselling everyone else is usually a typo, the lesson observes. Tie those totals and counts to the ERP's own report for the month before the model goes anywhere. Inside the model, Check Formula under Manage Measures traces a failing measure to its cause; in Lesson 170 that cause is an amount column stored as text, put right in Power Query before the measure is rebuilt. Lesson 168 checks the merged fact table for blank codes and keeps profit a decimal, since a whole number type would round it without a word.

Category managers want to explore spend themselves: what do they get from the model's dashboard?

A page they can filter without touching a formula. The Complete Excel Course with AI Integration builds it in Lesson 172: three more PivotTables from the Data Model join the category report, one by region, a monthly trend and the ten products with the highest value, each under its own heading, and four slicers, for category, channel, year and region, are linked to all four tables through Report Connections, so one click filters the page. Matching slicer and PivotTable styles finish it. In procurement terms the same page shows spend by category, by supplier or site, by month and the ten largest items, filtered by whoever opens it. Lesson 171 shapes the report itself: tabular form, grand totals switched off, and the figure readers ask about first placed first. Every view answers to the same measures, so two managers never quote two different totals for one category.

Is there anything to switch on or install before the first relationship?

Nothing extra to buy, and two things to switch on, both shown in The Complete Excel Course with AI Integration. Power Pivot comes with Excel for Windows, which is why the course's requirements name Windows for these lessons; on a Mac the Power Query steps before the model run, and the model itself needs a Windows PC. In Lesson 169 the Data Model opens from the green icon on the Data tab through Manage Data Model, and the data analysis add-ins are enabled when Excel asks. In Lesson 170 the workbook's external data connections arrive disabled, and Enable Content turns them on so the measures can read the model. From then on, every table joins the model through Load To with the Data Model box ticked. Each of these steps is a click, and the lessons show where every one of them sits before you need it.

Lists of the ten most used DAX functions are everywhere: which ones does a spend model here use?

Five, and between them they carry most of a spend model. The Complete Excel Course with AI Integration writes its measures with SUM for totals, DIVIDE for ratios that never show an error, CALCULATE and ALL for a share of the whole, and DISTINCTCOUNT for counting orders once (Lesson 170). Those five give total spend, a category's share of it, the number of purchase orders, their average value and any ratio of one total to another, each recalculating under every filter. A ranked list learned function by function misses what makes DAX hard, which is filter context: why one measure gives a different answer on each row of a PivotTable. The lesson shows it at work, including the one step, ALL inside CALCULATE, that changes the filter on purpose. SUMX, RELATED and the time-intelligence family have no lessons here; the five you learn are the ground those stand on.

Procurement dashboards are often built in Power BI: does learning DAX in Excel lead there?

Yes: the ideas are shared, and The Complete Excel Course with AI Integration teaches them in the program you open every day. Lesson 154 sets out the ETL workflow, extract, transform and load, with Excel or Power BI as the place the data lands, and the parts of this path, clean tables, relationships in a diagram and measures that recalculate for each filter, are what a Power BI report is made of too. A buyer who has built the SalesFusion model knows why a supplier list sits apart from the order lines, why a share needs CALCULATE with ALL and why an order is counted once with DISTINCTCOUNT, and that understanding travels. Power BI itself is not taught. Meanwhile the model you build lives in an ordinary workbook, so the people who read your spend report open it in Excel with nothing new to install or learn.

From the first lesson on this page, how soon could a model of our own purchase data be running?

About 1 hour 12 minutes of lessons on this page, once the Power Query half of SalesFusion is behind you. The Complete Excel Course with AI Integration takes the model from an empty Data Model to a working dashboard in one stretch: the fact table in Lesson 168, the relationships in Lesson 169, the measures in Lesson 170, then the report and the dashboard by Lesson 172. The SalesFusion dataset, with its CSV exports and lookup files, and the finished workbook come with the course, so every step can be checked against a working answer before you repeat it on your own data. Begin with one month of purchase lines, the supplier list and the item catalogue, then load more history once the measures agree with the ERP. Lifetime access keeps the lessons open as the model grows, and completing the course earns a Certificate of Completion with a verification link.

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.