The Complete Excel Course with AI Integration

Power Pivot and DAX for management accountants

Management accounts draw on tables that never share a file: transactions, the product or cost centre list, the regions, the budget. The Complete Excel Course with AI Integration teaches you to relate such tables in a Power Pivot data model and measure them with DAX on SalesFusion, an industry-standard project, and this page picks out the lessons that do it: the feed, the relationships, measures for margin, mix and order counts, and a dashboard run by slicers.

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 a fact table and its lookup tables into the Data Model and relate them in Diagram View, so a margin report reads across tables without a lookup column filled down.
  • Write DAX measures for total sales, total profit and margin percent, with DIVIDE returning a blank instead of an error wherever sales are zero.
  • Give each product category its share of the total with CALCULATE and ALL, the pattern behind a sales mix or a cost centre's share of overhead.
  • Count orders or invoices once each with DISTINCTCOUNT, however many lines they carry, and turn that count into an average value per order.
  • Trace a failing measure with Check Formula to the column type behind it, and correct it at the source in Power Query rather than in the report.
  • Present measures from the Data Model as a tabular management report led by profit and margin, and drive four PivotTables from one set of slicers.
  • Tie the model back to its source with a Group By query of totals and row counts by month and region before any figure is reported.
  • Reshape a budget grid with a column per month into a compact long table that a data model can take in.

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 as a refreshable reporting system, SalesFusion ends in the model this page is about: three tables related in Diagram View, six DAX measures from total profit to average order value, a tabular report led by profit and margin, and four PivotTables that one set of slicers steers together.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    A budget variance analyser built with modern formulas, it puts the formula route beside the model route: variance questions answered with SUMIFS, UNIQUE and LET instead of relationships and measures, so you can judge which tool suits each schedule in your pack.

  • Project 05

    SalesPlusPerformance

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

    Built on order-level data, its PivotTables, slicers and Refresh All are the ground a Data Model PivotTable stands on: the same field list, layouts and slicers, later reading three related tables instead of one.

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 10 of them, 1 h 6 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 PivotTables and Excel tables are already part of your month end: the overview shows the finished report that runs on a model, and the path then follows the data from query to measure. Never built a PivotTable? Take Lesson 57 onwards first, since every report on a data model is a PivotTable, or begin at Lesson 1 if Excel itself is new to you. Comfortable in Power Query already? Go straight to Lesson 169, where the Data Model, relationships and DAX begin, with the finished SalesFusion workbook to check your model against.

10 of 186 lessons · 1 h 6 min

15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min The finished SalesFusion report comes first: a business view of slicers and PivotTables whose filters flow through to a detail sheet, with Power Query as the clean-up engine and the data model as the map of how the tables relate. A management accountant sees the shape of a pack that runs on a model before a single measure is written.
  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 3 of 21 lessons · 16 min What the model is fed: Profit, Margin, a high-value flag and a return flag written onto every row inside the query, a Group By check of total sales and row count by month and region to tie back to the source, and the Close and Load choice that sends tables onward as connections instead of filling sheets.
  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 1 of 21 lessons · 6 min One fact table for the model: the cleaned history and the folder's files merged with their product and region lookups and appended into a single Main Sales File, checked for nulls after every join, with Profit kept as a decimal so nothing rounds, and loaded as a connection ready for Power Pivot.
  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 lessons, which need Excel for Windows: the sales table and its two lookups loaded into the Data Model and related one-to-many in Diagram View, then six DAX measures (Total Sales, Total Profit, Margin Percentage, share of total by category with CALCULATE and ALL, Orders with DISTINCTCOUNT and average order value), a tabular report led by profit, and a dashboard of four PivotTables and four slicers joined by Report Connections.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 8 min A budget export with a column per month, unpivoted into a compact table of month, budget sales and target units: the long shape a data model takes in, and one that keeps working when new month columns are added to the export.
  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.

What are Power Pivot and DAX for in management accounting, and where can I learn them by building a real model?

They let one report read across many tables, and The Complete Excel Course with AI Integration from Coding Liquids teaches both by having you build the model yourself. Power Pivot holds the tables and the relationships between them; DAX writes the measures, the calculations a PivotTable works out afresh for whatever slice it shows. On SalesFusion, an industry-standard project designed after talking with people from many different industries, you load a sales table and its product and region lookups into the Data Model (Lesson 169), write measures for profit, margin percent, share of total and order counts (Lesson 170), then present them as a tabular report and a dashboard (Lesson 171, Lesson 172). For margin by product, region and month, that replaces a workbook of lookup columns and SUMIFS grids. Everything a margin model needs, from its feed to its slicers, sits in the 10 lessons on this page, 1 hour 6 minutes you can finish before the next close.

Our ledger, cost centre list and product list live in separate files: how does Power Pivot report across them without lookup columns?

Through relationships, drawn once between the tables, and The Complete Excel Course with AI Integration has you draw them in Diagram View (Lesson 169). The sales table sits between its two lookups, and dragging RegionCode onto RegionCode, then the product ID onto ProductID, makes two one-to-many links: the 1 marks the lookup table, where each code appears once, and the asterisk marks the sales table, where codes repeat. From then on a PivotTable built on the model takes a category from the product table and a region name from the region table as if they were columns of the sales rows, with no VLOOKUP copied down thousands of lines. Analysts call this layout a star schema, and your ledger fits it exactly: transactions in the middle, the chart of accounts and the cost centre list around them, each joined on its code. The lessons relate sales to products and regions; an account or cost centre code joins the same way.

Can one margin measure feed every schedule in the pack, so no two reports ever disagree?

Yes: a measure is written once, in the model, and every PivotTable built on the model uses that one definition. In The Complete Excel Course with AI Integration, Margin Percentage is defined a single time in Lesson 170, then appears in the category report of Lesson 171 and across the dashboard of Lesson 172, whose four PivotTables cover category, region, the monthly trend and the leading products. Report Connections ties all four to the same four slicers, for category, channel, year and region, so one click re-cuts every table at once and each recalculates the measure for its own slice. Set that against a pack where margin is a formula copied onto each schedule: one edited copy, and two pages quote different margins for the same month. With measures, a correction made in Manage Measures reaches every PivotTable that uses it, and the pack speaks with one voice.

What figures of the management accounts do the course's DAX measures produce?

The core figures of a margin report: The Complete Excel Course with AI Integration writes six measures in Power Pivot's New Measure dialog in Lesson 170, and each maps onto a line a management accountant reports. Total Sales and Total Profit are the totals everything else divides. Margin Percentage puts profit over sales with DIVIDE, so the margin of a product line comes from that line's own totals in every cell of the report. Sales Percentage of Total by Category uses CALCULATE and ALL to show each category's slice of the whole, which is your sales mix. Orders counts each order once with DISTINCTCOUNT, although an order carries a line per product, and AOV divides sales by orders for the average order value; the same division over Orders gives a cost per order. Profit also exists as a column of the query (Lesson 160): a column is stored row by row, while a measure is worked out for each cell a PivotTable shows.

Can DAX give each product line or cost centre its share of the total, the way a sales mix or an overhead split needs?

Yes, with the measure The Complete Excel Course with AI Integration builds for exactly that purpose, Sales Percentage of Total by Category (Lesson 170). Inside it, CALCULATE works sales out again with ALL lifting the category filter, so every row of the report can reach the total it is a share of, and DIVIDE turns each category's sales into its percentage. Shown in Percent Style (Lesson 172), it reads as the mix at a glance, and it recalculates whenever a slicer narrows the report. For an overhead split the pattern holds with a cost centre in place of the category and cost in place of sales: every cost centre's share of the pool, with no grand total typed into a cell and no locked reference to break when rows move. On a worksheet the same answer needs a SUMIFS on every line and a total pinned in place, and it has to be rebuilt whenever the list of cost centres changes.

When a measure shows an error, or a blank I did not expect, how will I find the cause?

By the route The Complete Excel Course with AI Integration walks in Lesson 170, where a measure fails and is traced back to its source. Manage Measures opens the measure, Edit shows its formula and Check Formula reports the fault; in the lesson the trail leads to SalesAmount held as text, which a SUM cannot add, so the column's type is fixed in Power Query and the measure rebuilt. That is the habit a management accountant needs: correct the source, never patch the report. Blanks have a cause too. DIVIDE returns a blank, not an error, when the divisor is zero, so a cost centre with no sales this month shows an empty margin instead of a #DIV/0! running across the pack. And Lesson 168 sets Profit as a decimal before it reaches the model, because a whole number type would round every profit figure without a word of warning.

A cost centre opened this month is not on our mapping table yet: will its spend fall out of the model?

Its spend stays in every total, and the model shows you where it sits. When a row of the main table carries a code its lookup table does not hold, a PivotTable built on the model gathers that row under a blank label instead of dropping it, so the grand total still ties and the blank line tells you which mapping to add. The Complete Excel Course with AI Integration builds the relationships this rests on in Lesson 169, where the lookup side holds each code once: Excel will not relate two tables when neither column lists its codes uniquely, so a mapping with a cost centre entered twice has to be put right first, with Remove Duplicates, a step the lessons use in Power Query (Lesson 160). Lesson 168 adds the check that comes before the model: after every merge and append, filter for nulls, so no row reaches the measures without its code.

Can our budget sit in the data model beside the actuals?

Yes, and The Complete Excel Course with AI Integration prepares it for the model in Lesson 173, turning a budget export into the long table a data model reads. The file has a column for every month; Unpivot Other Columns turns them into rows, a real month-start date replaces the text label, Pivot Column sets budget sales beside target units, and Group By leaves a compact table by month, made for the data model and unharmed when later months arrive as new columns. For the budget against actual report itself, FinanceGuard (Lesson 115 to Lesson 124) is the course's industry-standard build: SUMIFS over budget and actual tables, variance and percent variance, colour-coded number formats, PivotTables, KPI cards, a combo chart and slicers. A variance measure that spans both tables inside the model is the one step no lesson writes; its parts, SUM and DIVIDE, are the ones you use in Lesson 170.

Our group's dashboards are in Power BI while my analysis stays in Excel: will the measures I write carry across?

They will: DAX is one formula language, shared by Power Pivot in Excel and by Power BI, so the measures you write in The Complete Excel Course with AI Integration read the same in either. SUM, DIVIDE, CALCULATE with ALL and DISTINCTCOUNT, the functions of Lesson 170, are core DAX, and the ideas beneath them carry over whole: tables loaded into a model, one-to-many relationships drawn in a diagram (Lesson 169), and measures that recalculate for each filter. Power BI itself has no lesson in the course; what you take to it is the thinking a Power BI report rests on, a model whose tables relate correctly and measures you can explain. For a management accountant whose group reports in Power BI while the monthly analysis lives in Excel, that means one way of thinking about the numbers in both places, and a margin measure you can defend to the team that maintains the dashboards.

Which is harder to pick up, DAX or SQL, for an accountant who already writes SUMIFS every day?

DAX starts closer to home for anyone fluent in Excel formulas, and it is the one The Complete Excel Course with AI Integration teaches. Its measures look like worksheet functions: SUM and DISTINCTCOUNT do what their names say, and DIVIDE is a division with the zero check built in. The genuinely new idea is CALCULATE, which works a measure out again under a changed filter, and a SUMIFS writer already thinks that way, since SUMIFS is a total under conditions. Lesson 170 builds each measure in a dialog with Check Formula beside it, on a model whose tables you have just related, so nothing stays abstract. SQL, the language for querying databases, is not taught; the shaping it does in a database, choosing columns, joining tables and stacking years, is done here through Power Query's menus, from the business columns of Lesson 160 to the merged fact table of Lesson 168.

Before the pack goes out, how do I prove the model's totals agree with the ledger?

With a control query built before the model, which The Complete Excel Course with AI Integration teaches in Lesson 161. A reference to the cleaned sales query is grouped by year-month and region, with total sales and a count of rows for each pair, sorted biggest first so a figure that looks too good stands out at once. Those totals are your tie-back: a PivotTable of the Total Sales measure (Lesson 170), laid out by the same month and region, can be held against them, and both against the system's own report. Lesson 168 adds the checks that follow every merge and append, filtering for empty codes, sales and years, because a join can let nulls in. For a management accountant this is the discipline of reconciling a schedule to the trial balance, applied once to the model, and the same control query serves every month after.

When I hand the model to a colleague or my successor, can they see how every figure is built?

Yes, far more readily than in a workbook of hidden helper columns, because the model documents itself in the places The Complete Excel Course with AI Integration teaches you to use. Diagram View (Lesson 169) draws every table and every relationship, so the structure is one picture. Manage Measures (Lesson 170) lists each measure by name with its formula a click away, and names such as Total Profit and Margin Percentage say what they return. Behind each table, the query's Applied Steps record every change made to the source, in order. Even the column names help: SalesFusion renames its headers in one style without spaces (Lesson 156), which keeps every formula short and easy to read. A successor who opens the file in Excel for Windows finds the logic laid out in plain view, not buried in cells.

Next month's export arrives: what do I do to bring the model and its reports up to date?

Save the file and refresh, because SalesFusion is built so the model updates from its source. In The Complete Excel Course with AI Integration the fact table is fed by a folder query (Lesson 166), so a new period file saved into the folder is picked up at the next refresh, cleaned by the same steps and stacked with the rest; the Main Sales File assembled in Lesson 168 rebuilds from it, the Data Model reloads, and every measure and PivotTable on the dashboard recalculates with its slicers still in place. The clicks are Refresh All and, when the workbook opens, Enable Content for its data connections (Lesson 170). For a management accountant that turns the monthly rebuild of margin schedules into a check of the control totals and a read of what moved, which is the part of the month that deserves your time.

I build the pack on a Windows laptop at the office but often check figures on a Mac at home: what can I practise where?

Most of this path runs on either, and The Complete Excel Course with AI Integration is plain about the rest. The course's requirements name Windows for Power Pivot, so Lesson 169 to Lesson 172, the Data Model, the relationships, the DAX measures, the report and the dashboard, need Excel for Windows: build and edit the model on the work laptop. The Power Query lessons on this page, the overview, the business columns, the control query, the load choices, the fact table and the unpivoted budget, carry no such requirement in the course, and neither does FinanceGuard, the variance report. The lessons are videos, so watching them works wherever you are; only the hands-on Power Pivot work waits for the Windows machine. Plan it that way and the model is built at the office while the reading and the Power Query practice travel with you.

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.