The Complete Excel Course with AI Integration
Power Pivot and DAX for sales teams
Sales reports grow until one sheet holds every order with lookups dragged down beside it, and each new question means another formula column. The Complete Excel Course with AI Integration replaces that with a Power Pivot data model on SalesFusion, an industry-standard project built on sales orders: tables related once, DAX measures written once, and a dashboard that answers by region, product, channel or year at a click. This page picks out the lessons that build it.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Load a clean sales table and its region and product lists into the Data Model, and relate them one-to-many in Power Pivot's Diagram View.
- Write DAX measures for total sales and total profit, and use Check Formula to trace a failing measure back to its cause before it reaches a report.
- Count orders rather than order lines with DISTINCTCOUNT, and work out average order value and margin percent with DIVIDE, which gives a blank instead of an error.
- Show each product category's share of total sales with CALCULATE and ALL, so the shares stay right under any region, channel or year a slicer picks.
- Build a tabular sales report from the Data Model that leads with profit and margin, in number formats a manager reads at a glance.
- Put sales by category, sales by region, a monthly trend and the top products on one dashboard, with category, channel, year and region slicers connected to every PivotTable.
- Prepare the model's tables in Power Query: period columns, profit and return labels, a control total by month and region, and a target grid unpivoted into rows.
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.
Its second half is the sales model: a master table of orders related to region and product lists in Diagram View, six DAX measures from total sales to average order value, and a dashboard of four PivotTables where one slicer click moves every figure.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
The PivotTable groundwork every measure is read through: fields placed in rows and values, sales grouped by date into years, quarters and months, slicers on region and state, and Refresh All for the day new orders arrive.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 15 of them, 1 h 23 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 153 SalesFusion Power Query project
Already building PivotTables with slicers on sales data? Start at Lesson 153, where SalesFusion shows the finished report and the model behind it. If PivotTables are still new, open with Lesson 60 to Lesson 62 on this page, or with Lesson 57 for the whole section, because every measure you write is read through one. Complete beginners start the course at Lesson 1. Keep a Windows PC ready for the Power Pivot lessons from Lesson 169.
15 of 186 lessons · 1 h 23 min
07 PivotTables and PivotCharts: data analysis made easy PivotTables on order-level sales, the report a DAX measure is always read through: fields placed in rows, values and columns with Value Field Settings, net sales by category and by date grouped into years, quarters and months, and slicers that filter by region and state.
- 60 PivotTable fields in Excel Rows, values, columns and Value Field Settings 2 min
- 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
- 62 Slicers in Excel Filter PivotTables with clickable buttons 3 min
07 PivotTables and PivotCharts: data analysis made easy Refresh and Refresh All: a PivotTable keeps yesterday's figures until it is refreshed, the habit a report on a data model depends on when new orders arrive.
- 65 Refresh a PivotTable in Excel Update pivots when source data changes 2 min
15 SalesFusion: advanced data tools and a Power Query modelling system The finished SalesFusion report as the goal, and the data model introduced as the map of how the sales tables relate: Power Query makes the data usable, and the model makes it useful.
- 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 Date columns for the model: year, month name, month number, month start and year-month added in Power Query, with Date chosen over Date/Time so relationships stay clean and months sort in calendar order.
- 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 What the model receives: profit, margin, order-size and return columns built in the query, a Group By of sales and row count by month and region to tie the measures back to, and Close and Load choices that send a table to the Data Model or keep it as a connection.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system The model and its report: a master sales table built from history and folder data, loaded with the region and product lists into the Data Model and related one-to-many in Diagram View, six DAX measures, a tabular report led by profit, and a dashboard of four PivotTables and four slicers. These Power Pivot lessons need Excel for Windows.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system A target grid with a column per month unpivoted into a compact table of month, budget sales and target units, shaped for the data model and safe from new month columns.
- 173 Unpivot columns in Power Query Turn wide month columns into a long table 8 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.
What can a sales team build with Power Pivot and DAX once the tables are connected?
A sales model and the report on top of it, and The Complete Excel Course with AI Integration from Coding Liquids builds both on SalesFusion, an industry-standard project designed after talking with people from many different industries. A master table of orders is loaded into the Data Model with a region list and a product list and related to them in Diagram View (Lesson 169). DAX measures then answer the questions a sales meeting asks: total sales and total profit, how many orders, the average order value, margin percent and each category's share of the total (Lesson 170). On top sit a report led by profit (Lesson 171) and a dashboard of sales by category, sales by region, a monthly trend and the top ten products, filtered by four slicers at once (Lesson 172). Power Pivot runs in Excel for Windows, so the model-building lessons call for a Windows PC. The 15 lessons on this page, PivotTable groundwork included, run to 1 hour 23 minutes.
Which sales measures will I write in DAX, and what does each one answer?
Six, and together they cover what a sales review opens with; The Complete Excel Course with AI Integration writes every one in Lesson 170. Total Sales and Total Profit sum their columns: what was sold and what it earned. Orders runs DISTINCTCOUNT over the order ID, so an order of several products is counted once. AOV, the average order value, sets sales over orders, and Margin Percentage sets profit over sales, both with DIVIDE, so an empty selection shows a blank and never an error. Sales Percentage of Total by Category combines DIVIDE with CALCULATE and ALL to give each category its share of the whole. Pick a region, channel or year on a slicer and all six answer again for that slice alone. SUM, DISTINCTCOUNT, DIVIDE, CALCULATE and ALL are the working core of sales DAX, and every breakdown the model holds falls out of them; iterators such as SUMX and time-intelligence functions are left out of the lessons.
Region and product details sit in separate lists from the orders: how does Power Pivot bring them together?
With relationships, drawn once instead of lookups copied down every row, and The Complete Excel Course with AI Integration builds them in Lesson 169. The master sales table, the region list and the product list are each loaded with Add this data to the Data Model ticked; Manage Data Model opens Power Pivot, and in Diagram View the sales table sits between its two lists. Dragging RegionCode onto RegionCode, and the product ID onto ProductID, draws two one-to-many relationships: the 1 marks the list, where each code appears once, and the asterisk marks the sales table, where it appears many times. The lesson's own comparison makes the case for a sales team: one relationship replaces a VLOOKUP dragged down ten thousand rows, so a PivotTable can set region names, product categories and order figures side by side with no helper column at all. These lessons need Excel for Windows.
An order with five products shows up as five rows: how does the model count it as one order?
With DISTINCTCOUNT, which The Complete Excel Course with AI Integration uses for exactly that reason. In Lesson 170 the Orders measure counts each order ID once, though an order has a row for every product on it, so the order count a sales director sees is real orders, not lines. That one measure unlocks a second: average order value, written with DIVIDE as sales over orders, a figure that would be wrong by a mile if lines were counted instead. DIVIDE returns a blank rather than an error when there are no orders, so a slicer choice with nothing behind it shows an empty cell instead of a #DIV/0! across the report. In the report built next, Orders and AOV are taken out of the profit-led view to keep it focused (Lesson 171), and they stay in the model, ready for any PivotTable that needs them later.
Our region margins look wrong when the margin column is averaged: what does a DAX measure do differently?
It divides the totals instead of averaging the rows, and The Complete Excel Course with AI Integration teaches both halves so the difference is plain. In Power Query, Lesson 160 adds a Margin column to every order, profit over sales, the right figure for one order. Averaged across a region, though, a small order counts as much as a large one, and the result drifts from the truth. The Margin Percentage measure of Lesson 170 works on the totals for whatever is selected, the region's profit over the region's sales, recalculated the moment a slicer changes, which is the figure a region's margin should be. The same logic sits behind Total Sales and Total Profit: a measure is worked out for the filter, not stored on the row. So the query holds the per-order facts, the measures hold the answers, and the report never disagrees with itself.
Which product categories carry our revenue, and can one measure show their share whatever region is picked?
Yes: Sales Percentage of Total by Category does it, and The Complete Excel Course with AI Integration builds it in Lesson 170 with three functions. DIVIDE sets the category's sales over a denominator; CALCULATE changes the filter for that denominator; and ALL on the category column makes it ignore which category the row shows, so the total for every category is always the bottom of the fraction. Pick a region on a slicer and both halves follow the region, so the shares still add up to the whole of that region's sales. In the report of Lesson 171 the measure sits beside total profit, margin percent and total sales, with categories down the rows in tabular form, and the dashboard's percent formats turn a raw fraction into a share read at a glance (Lesson 172). For a sales team deciding where to push next, it is the first number to look at.
Can the model show how sales are tracking against last year?
Yes, year beside year, with the fields The Complete Excel Course with AI Integration prepares before the model is built. Both years reach the model in one table: a cleaning query is reused on the next year's export (Lesson 164), the two years are appended (Lesson 165), and the result joins the folder data in the master sales table (Lesson 168). Year, month and year-month columns come from Lesson 159. On the dashboard, the Monthly Trend PivotTable places Year above the sale date, and a Year slicer filters every table at once (Lesson 172), so this year and the last sit next to each other under the same measures. Time-intelligence functions such as DATEADD are not in the lessons; with the years and periods already in the table, a PivotTable lays them out without one, and every measure follows.
Our CRM tracks deals by stage: could these DAX lessons give me win rate or attainment by rep?
The pattern, yes, and The Complete Excel Course with AI Integration teaches every function it needs, on order data rather than a pipeline. A win rate is one count over another, and the measures of Lesson 170 give you both halves: DISTINCTCOUNT counts each order once, and DIVIDE sets one figure over another with no error when the bottom is zero, exactly as Margin Percentage and AOV do. CALCULATE changes which rows a measure sees, the skill behind each category's share; pointed at a stage instead of a category, it counts only the deals won. Attainment is the same move, sales over target, and Lesson 173 shows how a target grid with a column per month becomes a compact table of month, budget sales and target units, shaped for the model. The lessons' data holds no deal stages and no targets by rep, so those measures are yours to write; the course gives you the method and a working model to test them in.
Do our sales sheets need to be Excel tables before they go into the data model?
They need to be clean, typed tables, and The Complete Excel Course with AI Integration gets them there through Power Query rather than by hand. In SalesFusion every table reaches the model from a query: the master sales table, the region list and the product list are each loaded with Add this data to the Data Model ticked (Lesson 169), after Close and Load has kept the staging queries as background connections (Lesson 162). Before that, the queries have fixed data types, so amounts are numbers and dates are dates, and turned date-times into plain dates, which saves memory and keeps relationships clean (Lesson 159). The model rewards the effort: a measure on an amount stored as text fails, and Lesson 170 shows exactly that error traced and fixed back in Power Query. Formatting a range as a table, taught early in the course (Lesson 19), still suits a sheet that people type into.
What ends up on the sales dashboard built from the model?
Four PivotTables, four slicers and one consistent style, built in Lesson 172 of The Complete Excel Course with AI Integration. Sales by Category comes from the report of the lesson before; Sales by Region, a Monthly Trend with the year above the sale date, and the Top 10 Products, cut with a Value Filter, are each inserted From Data Model. Slicers for category, channel, year and region name are linked through Report Connections to all four tables, so one click narrows the whole dashboard, and matching slicer and PivotTable styles make it read as one piece of work. The report behind it, from Lesson 171, is tabular, with grand totals off and the values ordered to lead with total profit, then share of total, margin percent and total sales, because profit and margin are what stakeholders ask about first. It is a dashboard a sales meeting can drive by itself.
Total Sales in the model and the CRM's own report disagree: how do I find out which is right?
Start from the control total, which The Complete Excel Course with AI Integration builds before the model exists. Lesson 161 groups the cleaned sales by year-month and region with a total and a row count; set Total Sales by month and region beside it and the two must agree, or the gap shows where to look. The usual causes are all met in the lessons: an amount stored as text, which Check Formula exposed in Lesson 170; dates the raw file could not read, which leave blank months; duplicate order IDs, removed in the query (Lesson 160); and blanks let in by a merge, which Lesson 168 checks for. Compare row counts as well as totals, since a different count points to orders lost or duplicated on the way. Once the model matches the control total, any difference left with the CRM is a question about what the CRM exported, and you can show exactly why.
Sales operations runs on SUMIFS today: will DAX feel familiar or foreign?
Familiar, and The Complete Excel Course with AI Integration leans on that. Total Sales, the first measure in Lesson 170, is a SUM of one column, written once instead of copied into every cell of a summary grid. DIVIDE does what a division wrapped in IFERROR does on the sheet, returning a blank when the bottom is zero. CALCULATE is the one new idea: where SUMIFS adds conditions, CALCULATE changes the filter a measure works under, and with ALL it can drop the category filter to reach the total of every category. The real change is where the formula lives. A SUMIFS grid has to be rebuilt for every new breakdown, while a measure answers for any row, column or slicer the PivotTable is given. Check Formula in the measure dialog catches mistakes before they reach a report, and with the instructor support plan, a question about your own measure goes to the instructor in writing.
How soon could the weekly sales report run from a data model, and what do I need first?
About 1 hour 23 minutes of lessons on this page, and the model is working by the second of its Power Pivot lessons. The Complete Excel Course with AI Integration asks for PivotTables first, which the page includes (Lesson 60 to Lesson 62), and for clean tables from Power Query: the page takes the date columns, sales rules and control total the model relies on, and the full cleaning route runs from Lesson 154 for anyone who needs it. Relationships come in Lesson 169, the six measures in Lesson 170, and the dashboard is finished by Lesson 172. A Mac can follow the PivotTable and Power Query lessons here, while the model itself needs Excel for Windows. You keep the complete SalesFusion workbook to compare against, lifetime access for the next report you rebuild, and a Certificate of Completion with a verification link an employer can check.
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
- Excel formulas for sales teams
- XLOOKUP and VLOOKUP for sales
- Pivot tables for sales teams
- Excel charts for sales teams
- Excel dashboards for sales teams
- Conditional formatting for sales
- Data cleaning for sales teams
- Data validation for sales teams
- Excel tables for sales teams
- Text functions for sales teams
- Date functions for sales teams
- Power Query for sales teams
- Excel macros and VBA for sales teams
- Power Automate for sales teams
- Copilot in Excel for sales teams
- ChatGPT for Excel for sales teams
- Claude in Excel for sales teams