The Complete Excel Course with AI Integration

Power Pivot and DAX for accounts payable clerks

For accounts payable clerks whose register has grown into a year of invoice lines, a supplier master and lookups filled down every row, each recalculation slower than the last. The Complete Excel Course with AI Integration moves that work into a Power Pivot data model with DAX measures on SalesFusion, an industry-standard project, and this page picks out the lessons that feed, relate, measure and report it.

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:

  • Load the cleaned invoice export and the supplier master into the Data Model as connections, so the grid holds the report and not every staging table.
  • Relate invoice lines to the supplier master in Diagram View with a one-to-many relationship, so terms and categories reach every report with no VLOOKUP filled down.
  • Write DAX measures for the total invoiced, the number of invoices counted once with DISTINCTCOUNT and the average invoice value with DIVIDE.
  • Show each supplier's share of total spend with a measure built from CALCULATE, ALL and DIVIDE, right in every row of the report.
  • Test a measure with Check Formula and trace a wrong total back to an amount the export holds as text.
  • Prove a period's total and row count with a Group By query before the model reports a single figure.
  • Present the measures in a tabular PivotTable by supplier category, then in a dashboard of spend by category, by month and by largest supplier, every slicer wired to every table.

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, it hands an AP clerk the full pattern for a payables model: a fact table of transactions between two lookup tables, measures that count, total and share, and a dashboard whose slicers drive every table at once.

  • Project 05

    SalesPlusPerformance

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

    The PivotTable project, on order-level sales data, where fields, date grouping, slicers and Refresh All are learned on a plain table: the same controls every report from the payables model is steered with.

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 8 of them, 52 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 invoices already sit in Excel Tables and you have built a PivotTable: the overview shows the finished model first, then the path moves to the checks and the fact table that feed it. The Power Query lessons in between build the tables the model reads, so follow them in full if your exports still need cleaning. If PivotTables are still new to you, the run from Lesson 57 to Lesson 65 comes first, and anyone new to Excel itself begins at Lesson 1. Already shaping exports in Power Query? Go straight to Lesson 168, then into Power Pivot at Lesson 169 on Excel for Windows.

8 of 186 lessons · 52 min

15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min Where SalesFusion is heading: a business view whose slicers and PivotTables run on a data model, and the plan that turns messy files into a connected, refreshable reporting system with relationships and DAX measures. See the finished shape before your own invoice model is begun.
  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 2 of 21 lessons · 10 min Two steps before anything enters the model: a Group By query that totals the data and counts its rows by month and region, the control figure a payables clerk ties to the finance system, then the Close and Load choices that keep staging queries as connections and send only finished tables to the grid or the Data Model.
  1. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  2. 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 1 of 21 lessons · 6 min The fact table: lookups merged, history appended, spare columns dropped, blanks checked and the result held as a connection, ready to sit at the centre of the model the way an invoice table will. The lessons use sales files.
  1. 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 4 of 21 lessons · 31 min The Power Pivot half, and these lessons need Excel for Windows: the Data Model with two one-to-many relationships in Diagram View, six DAX measures built on SUM, DIVIDE, CALCULATE, ALL and DISTINCTCOUNT, a tabular PivotTable report from the model, and a dashboard of four PivotTables with slicers connected to every one. Read them as supplier spend, invoice counts and shares by supplier.
  1. 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 min
  2. 170 DAX measures in Power Pivot Total sales, margin percent and percent of total 10 min
  3. 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
  4. 172 Interactive Excel dashboard Data model PivotTables, slicers and styling 10 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.

Is Power Pivot with DAX worth learning for accounts payable, and where is it taught on a model you build yourself?

Yes, for any clerk whose invoice register has outgrown lookups filled down every row. The Complete Excel Course with AI Integration from Coding Liquids teaches Power Pivot and DAX on SalesFusion, an industry-standard project designed after talking with people from many different industries, and you build the model yourself: a fact table of transactions, two lookup tables related to it in Diagram View, six DAX measures, a tabular report and a dashboard of four PivotTables steered by slicers. The 8 lessons on this page take 52 minutes, from the fact table to the finished dashboard, and each is tied here to a piece of payables work: supplier details available to every report, invoices counted once, each supplier's share of spend and a dashboard for the payment run meeting. The dataset and the finished workbook come with the course, so every measure you write has a working answer to set beside it.

A year of invoice lines and lookups filled down every row have made my register crawl: what does the data model change?

It takes the lookups off the sheet and the staging tables out of the grid. In The Complete Excel Course with AI Integration, Lesson 162 sets the rule that keeps a payables workbook quick: load only the finished table and hold every staging query as a connection, because a workbook that loads every step grows slow and bloated. Lesson 169 then loads the fact table and its lookup tables into the Data Model, opens Power Pivot and joins them in Diagram View, one relationship standing in for a VLOOKUP dragged down thousands of rows. Supplier category or payment terms then become fields of every report through that relationship, with no formula on any invoice line to recalculate. The lessons model sales transactions, and an invoice export with its supplier master takes the same shape. Like all of the Power Pivot lessons, Lesson 169 needs Excel for Windows.

Supplier names already come into my invoice list through a merge: what does a relationship in the model add?

A supplier master kept whole, with every column of it ready to report by. The Complete Excel Course with AI Integration does both, in that order, so the difference is plain: Lesson 168 merges the lookup tables into the fact table in Power Query, the flat table a merge gives, and Lesson 169 then loads the lookups into the Data Model as tables of their own and relates them on their codes. On a relationship line the 1 marks the lookup side, where each code appears once, and the asterisk marks the fact side, where the code repeats: one supplier, many invoice lines. In Lesson 171 a field from a lookup table, the category, goes onto the rows of a report whose figures come from the fact table. For payables that means one supplier master, kept up to date in one place, and spend reported by any of its columns in every PivotTable built on the model.

How should invoice lines, the supplier master and a cost centre list be laid out in the model?

As a fact table in the middle with a lookup table on each side, the layout The Complete Excel Course with AI Integration builds in Diagram View. In Lesson 169 the master table of transactions sits between two lookups and each is joined to it on a code, giving two one-to-many relationships; in a payables model the invoice lines take the middle, the supplier master one side and the cost centre list the other. Lesson 168 prepares the middle table first: lookups merged, history appended, checked for blanks and held as a connection for the model. Periods travel on the fact table itself, because Power Query has already given every row its year, month name, month number, month start and year-month (Lesson 159); a separate calendar table is not part of the lessons. An ageing band can travel on that table too, from the export or from a conditional column like the one Lesson 160 builds, and every measure then splits by band, though a measure that ages invoices against today's date is not taught. It is the star shape that DAX guides call a star schema, drawn here by hand on a real dataset.

Which DAX measures does a payables report lean on, and are they in the lessons?

Five functions carry most of it, and The Complete Excel Course with AI Integration writes a measure with each in Lesson 170. SUM gives the total, as the lesson's Total Sales does and your total invoiced will. DIVIDE turns two measures into a ratio or an average, and returns a blank rather than an error when the bottom figure is zero. CALCULATE with ALL reaches past a filter to the grand total, which is how a share of the whole is worked out. DISTINCTCOUNT counts each order once, however many rows it has. The lesson builds six measures from them on sales transactions: Total Sales, Total Profit, a percentage of total by category, Orders, Margin Percentage and an average order value. Point the same functions at an invoice table and they give the total invoiced, each supplier's share, the number of invoices and the average invoice value, the figures a payables summary is asked for first.

An invoice with ten lines shows up ten times in my counts: can a measure count it once?

Yes, with DISTINCTCOUNT, the function The Complete Excel Course with AI Integration uses for exactly that problem. In Lesson 170 an order has a row for every product on it, so counting rows would overstate the orders; the Orders measure counts each order number once instead. An invoice export has the same shape, a row for every line of an invoice, and a DISTINCTCOUNT of the invoice number gives the true number of invoices, per supplier, per month or for the whole run, in whichever PivotTable it is dropped into. The same lesson builds an average order value with DIVIDE beside it, and the payables reading is the average invoice value per supplier, a quick way to see who bills in many small amounts and who in a few large ones. Measures are worked out again for every filter and slicer, so the count stays right however the report is cut.

Can a measure show each supplier's share of the month's spend, and stay right when the month changes?

Yes: The Complete Excel Course with AI Integration builds that measure in Lesson 170, on product categories. It divides each row's sales by the sales of every category together, and CALCULATE with ALL on the category field is what reaches that whole: ALL lifts the filter on the field it names, so the bottom of the fraction is the total, while DIVIDE gives a blank in place of an error if that total is ever zero. Swap the category for the supplier and each line of your report shows its share of spend. Filters on other fields still apply, so a slicer set to one month gives each supplier's share of that month alone. A growing reliance on one supplier, or a cost centre's spend creeping up, shows here before anyone asks. Lesson 172 then sets the shares in Percent Style with two decimal places, so each one reads at a glance instead of as a raw fraction.

Can I build a supplier spend dashboard from the model, with the biggest suppliers at the top?

Yes, and The Complete Excel Course with AI Integration builds its own dashboard to exactly that pattern in Lesson 172. Four PivotTables come from the Data Model: sales by category, sales by region, a monthly trend with the year above the dates, and the leading products picked out by a Top 10 value filter. Four slicers, for category, channel, year and region, are wired to all four tables through Report Connections, so one click filters the whole page, and one style runs through it. Rebuilt on payables, that is spend by supplier category, spend by cost centre, the monthly trend of invoices and the suppliers you pay most, filtered by year or business unit from the same row of buttons. Lesson 171 first shapes the report the model feeds: tabular form, grand totals switched off and the figures that matter most in the first columns.

Before the model's figures reach my manager, how do I prove they agree with the finance system?

With checks that The Complete Excel Course with AI Integration builds into the route to the model, so a total is proved before it is reported. Lesson 161 makes a quality-check query with Group By: total sales and a row count for every month and region, biggest first, so a figure that looks too good stands out and the totals can be set beside the system's own report. Lesson 168 checks the fact table for blanks after every merge and append, because both can let nulls in. Inside the model, Lesson 170 tests each measure with Check Formula, and when one fails it traces the fault to an amount column held as text, fixes the type in Power Query and rebuilds the measure. For payables, run the Group By on the invoice export by month and supplier, tie it to the system's figure, and only then let the dashboard speak.

Next week's invoice export lands in the same folder: will the model and its measures pick it up?

Yes: refresh, and the whole chain runs again from the folder to the dashboard. In The Complete Excel Course with AI Integration the model's fact table is fed by a folder query (Lesson 166), which takes in a new file dropped into the folder at the next refresh, and Lesson 168 appends it to the history before the result is held as a connection for the Data Model. The measures of Lesson 170 are formulas over whatever the model holds, so they need no editing when the rows grow: total invoiced, invoice count and supplier shares all move with the data. For a payables team, the week's export is saved into its folder, Refresh All is pressed, and the dashboard on the screen at the payment run meeting shows this week. The one habit to keep is the check: a look at the Group By totals before the figures go anywhere.

Supplier names are already cleaned in Power Query: what is left for DAX to do?

The calculating, and The Complete Excel Course with AI Integration draws the line exactly there: Power Query cleans the data, Power Pivot connects it and DAX measures it. Anything that should be fixed once and stored, a trimmed supplier name, an amount turned from text into a number, a period column, belongs in the query, which runs the same steps at every refresh. Anything that depends on how the report is cut belongs in a measure, because a measure is worked out again for every filter and slicer: a supplier's share of spend is a different number for each month, and no stored column could hold them all. Lesson 170 shows the line in action when a measure fails on an amount held as text, and the fix is made in the query, not in DAX. Learn both halves and the payables report stops being rebuilt by hand every week.

DAX looks like code: how much of it would a payables clerk have to write?

Short formulas of a line each, written in a dialog, and The Complete Excel Course with AI Integration has you write every one of them. In Lesson 170 each measure starts from New Measure in Power Pivot: a name, a formula such as the SUM of the amount column, and a Check Formula button that tests what you typed. The most involved of the six is the share of total, where DIVIDE, CALCULATE and ALL sit inside one another; read aloud, it is this category's sales over all categories' sales. If SUMIFS and percentages are part of your week, the logic is already yours: a measure behaves like a SUMIFS that takes its conditions from wherever it stands in the report. No SQL and no programming come into it, and on the instructor support plan a question about a measure of your own goes to the instructor, who answers in writing.

Power Pivot is missing from my ribbon at work: is it a download, and which Excel runs it?

Nothing to download: Power Pivot is part of Excel for Windows, and The Complete Excel Course with AI Integration switches it on in Lesson 169. The Data tab's Manage Data Model button asks to enable the data analysis add-ins, and from then on Power Pivot has its own window with Diagram View. The course's requirements name Windows for these lessons, the model, the measures, the report and the dashboard, because Excel for Mac does not include Power Pivot, so a work laptop running Excel on Windows is all it takes. One more prompt to expect when the workbook is reopened: Lesson 170 meets the security bar that disables external data connections and the Enable Content click that brings the model's links back, safe on a file you built yourself.

How long before the payables model is running, and what do I keep at the end?

About 52 minutes of lessons, and the model itself, tables related in Diagram View, stands by the end of Lesson 169. The Complete Excel Course with AI Integration then adds the six measures, the tabular report and the dashboard, so by Lesson 172 you hold a complete reporting model of the kind finance teams run on: tables in, relationships drawn, measures written, slicers wired. The SalesFusion dataset and the finished workbook come with the course, so each step can be rebuilt on your own invoice export and checked against a working answer. Lifetime access keeps every lesson open for the day the model needs a new table or a new measure, and the Certificate of Completion you earn by finishing the course carries a verification link, with a data model behind it that you can open in an interview and explain.

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.