The Complete Excel Course with AI Integration

Power Pivot and DAX for e-commerce managers

A store's sharpest questions cut across files: margin by channel, AOV by month, the share each category brings. Lookup columns copied down every export answer them slowly and break easily. In The Complete Excel Course with AI Integration, Power Pivot and DAX answer them inside SalesFusion, one of its industry-standard projects, and the lessons gathered here build the whole thing: PivotTables first, then the fact table, the model and its relationships, the measures, a trading report and a dashboard.

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 cleaned order table into the Data Model beside lookup tables for products and regions or channels, and relate them one-to-many in Diagram View so no lookup column is filled down again.
  • Write the measures a store reports on: Total Sales and Total Profit with SUM, Orders as a distinct count, Margin Percentage and AOV with DIVIDE, and each category's share of sales with CALCULATE and ALL.
  • Work out margin and AOV as ratios of totals inside measures, so a channel's figure is right however the report is sliced, instead of averaging per-line values.
  • Track down a measure that errors or returns a strange total with Check Formula, and fix the cause where it starts, in Power Query.
  • Build a focused trading report from the model: product categories in tabular form, profit and margin first, grand totals switched off.
  • Assemble a dashboard of four Data Model PivotTables, sales by category and by region, the monthly trend and the best-selling products, with Category, Channel, Year and Region Name slicers wired to all of them.
  • Keep staging queries as connections and send only the finished fact table to the model, so years of order lines never have to sit on a worksheet.

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.

    A project built on messy sales exports, whose second half relates the cleaned order table to lookup tables for products and regions in Power Pivot and measures it with DAX: the build a store needs for margin, AOV and category share by channel and month.

  • Project 05

    SalesPlusPerformance

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

    The PivotTable project of the course, built on order-level sales: fields, grouped dates, slicers and refreshing learned there are the controls a data model's PivotTables use too, so a report built on measures feels familiar from its first click.

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 16 of them, 1 h 14 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 169 Power Pivot Data Model in Excel

Start at Lesson 169 if your orders already come out of Power Query as one clean table and PivotTables hold no surprises: SalesFusion builds its data model there, in Excel for Windows. Never built a PivotTable? Work through Lesson 57 onward first, since every report here is one. No clean order table yet? The Power Query lessons from Lesson 153 build it, and this page keeps the ones that hand it to the model. Brand new to Excel? Begin at Lesson 1.

16 of 186 lessons · 1 h 14 min

07 PivotTables and PivotCharts: data analysis made easy 10 lessons · 33 min PivotTables from the ground up on order-level sales data: what one does, preparing clean source data, fields and Value Field Settings, sales by category with dates grouped, slicers, PivotCharts, layouts and styles, refresh, and a closing challenge by region, category and month. Every report the data model feeds is built from these.
  1. 57 PivotTables 101 in Excel What a PivotTable does and the sales dataset 5 min
  2. 58 Preparing data for PivotTables Clean data with TRIM, PROPER, find and replace 5 min
  3. 59 Create your first PivotTable in Excel Insert a PivotTable from a sales table 1 min
  4. 60 PivotTable fields in Excel Rows, values, columns and Value Field Settings 2 min
  5. 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
  6. 62 Slicers in Excel Filter PivotTables with clickable buttons 3 min
  7. 63 PivotCharts in Excel Create interactive charts from a PivotTable 5 min
  8. 64 PivotTable design Tab Report layouts, PivotTable styles and number formats 5 min
  9. 65 Refresh a PivotTable in Excel Update pivots when source data changes 2 min
  10. 66 Excel Ninja Challenge PivotTable sales by region, category and monthly trend 1 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min Close and Load and the three places a query can go, a worksheet table, a bare connection or the Data Model, with the rule that only finished output reaches the grid while staging queries stay connections.
  1. 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 the model stands on: sales history and folder data appended, product and region lookups merged in, nulls checked and profit kept as a decimal, then held 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 2 of 21 lessons · 16 min The model and its measures, in Excel for Windows: three tables added to the Data Model, two one-to-many relationships drawn in Diagram View, then Total Sales, Total Profit, share of sales by category with CALCULATE and ALL, Orders as a distinct count, Margin Percentage and AOV with DIVIDE, and Check Formula to trace an error.
  1. 169 Start here 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
15 SalesFusion: advanced data tools and a Power Query modelling system 2 of 21 lessons · 15 min The model at work: a tabular report of the measures by product category with profit leading, then a dashboard of four Data Model PivotTables (category, region, monthly trend and best sellers), styled alike and filtered together by Category, Channel, Year and Region Name slicers through Report Connections.
  1. 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
  2. 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.

Every report in my store shows a slightly different AOV and margin: will Power Pivot and DAX give one figure for each, and where does an e-commerce manager learn to build them?

Yes: a DAX measure is written once and every report built on the model reads that one definition, and The Complete Excel Course with AI Integration from Coding Liquids builds six such measures in Lesson 170: Total Sales, Total Profit, Orders counted once each, Margin Percentage, AOV and each category's share of sales. They sit on SalesFusion, one of the course's industry-standard projects, built after talking with people in many different industries: a clean order table related to lookup tables for products and regions in Diagram View (Lesson 169), then a focused report by category (Lesson 171) and a dashboard whose slicers filter every PivotTable at once (Lesson 172). The AOV in Monday's report and the AOV on the dashboard come from one measure, so they can never disagree. Building it takes 1 hour 14 minutes across the 16 lessons picked here, and the model and measure lessons run on Excel for Windows.

Of all the DAX functions, which few does a store's trading report actually run on?

Five, and The Complete Excel Course with AI Integration teaches every one inside a measure a store would keep. SUM adds a column, as in Total Sales and Total Profit. DISTINCTCOUNT counts each order ID once, so an order spread over several product lines counts as one order, the right base for average order value. DIVIDE works out a ratio and returns a blank instead of an error when the figure underneath is zero, which is how Margin Percentage and AOV are written. CALCULATE changes the filter a measure works under, and ALL, inside it, lifts the category filter so a category's sales can be set against the grand total. All five sit in Lesson 170, written in Power Pivot on Excel for Windows. Reference lists run to hundreds of functions; these five build every measure of the course's trading report and dashboard.

Margin per order line already sits in my query: why does each channel's margin need a DAX measure instead?

Because a channel's margin is its total profit over its total sales, not an average of line margins, and The Complete Excel Course with AI Integration builds it that way. A per-line Margin column, added in Power Query in Lesson 160, is right for each row; averaged across a channel, it lets a small order with a fat margin count as much as a big order with a thin one, and the channel figure drifts from the truth. The Margin Percentage measure in Lesson 170 divides Total Profit by Total Sales with DIVIDE at whatever level the report shows, a channel, a category, a month or one slicer choice, so every figure is a true ratio of totals. AOV is built the same way, sales over a distinct count of orders. Rules for each row belong in the query; ratios of totals belong in measures, written in Power Pivot on Excel for Windows.

Can a measure show the share of sales each category brings, and does it still add up when I slice by channel?

Yes, and the slicer is where the measure proves its worth. The Complete Excel Course with AI Integration builds Sales Percentage of Total by Category in Lesson 170: DIVIDE sets the category's sales against the same sales worked out with CALCULATE and ALL on Category, and ALL lifts only the category filter, so the bottom of the ratio is the total of every category. Pick one channel on a slicer and that channel's filter still stands, so the shares become each category's slice of that channel's sales and add up to 100% again. Change the slicer and they recalculate at once, since measures follow every filter and slicer. Lesson 171 then places the measure in the course's report beside profit and margin, so a merchandiser sees which categories carry each channel. Measures are written in Power Pivot, a tool of Excel for Windows.

Orders, products and channels sit in separate exports: how should a store lay them out before Power Pivot can relate them?

As one long table of order lines in the middle, with a short lookup table for each thing it refers to, the shape The Complete Excel Course with AI Integration builds in Lesson 169. There, the Main Sales File, one row per sale, goes into the Data Model with a products lookup and a regions lookup, and Diagram View places the sales table between them; dragging RegionCode onto RegionCode and the product ID onto ProductID draws two one-to-many relationships. On each line the 1 marks the lookup side, where every code appears once, and the asterisk the sales side, where codes repeat. For a store that means order lines in the middle, a product table of SKUs with cost and category, and a table of channels or regions, each joined on its code. Analysts call this layout a star schema, and building it in Power Pivot calls for Excel on Windows.

Years of order lines will not fit comfortably on a worksheet: can the data model take them?

Yes: tables in the Data Model live outside the worksheet grid, and The Complete Excel Course with AI Integration sends its order table there without pasting it onto a sheet. Lesson 162 sets the rule that only finished output reaches the grid, with staging queries kept as connections; Lesson 168 appends the sales history to the folder data as one Main Sales File held as a connection; and Lesson 169 loads it, with its lookups, straight into the model through Load To with the Data Model box ticked. Because the model's tables are not rows on a sheet, the worksheet's row limit does not bind them, and the sheets stay free of rows nobody reads. PivotTables built From Data Model then summarise every line, and measures do their arithmetic for each cell of the report rather than for each row. The model itself runs in Power Pivot, on Excel for Windows.

Copilot can turn my order table into a PivotTable from one prompt: why build a data model with DAX as well?

Because the two answer different questions, and The Complete Excel Course with AI Integration teaches both. Copilot's PivotTable in Lesson 92, revenue by region and month from one prompt, is a fast look at a single table, and Lesson 110 adds the habit that goes with it: check every generated pivot against totals you already trust. A data model goes further. It joins the order table to lookup tables for products and regions (Lesson 169), so category and region names meet the sales in one PivotTable without a lookup column, and its measures (Lesson 170) hold the store's definitions, orders counted once each, margin as profit over sales, AOV on true orders, in one place for every report. Use Copilot for a quick question about this morning's orders; build the model for the figures the trading pack repeats every week. Power Pivot, where the model lives, is part of Excel for Windows.

A measure shows an error, or a total that cannot be right: how does the course teach me to track it down?

By reading the measure, then fixing the data where the fault starts, which is what happens in Lesson 170 of The Complete Excel Course with AI Integration. The first Total Sales measure fails; Manage Measures, Edit and Check Formula lead to the cause, a SalesAmount column held as text, and the fix is made in Power Query, where the column gets a number type, before the measure is rebuilt. That order matters: a measure is only as good as the column under it, so the cure for a strange figure usually lies upstream. Two earlier checks help you spot one: the Group By query of Lesson 161 gives totals by month and region to hold a measure against, and the null checks of Lesson 168 stop blanks from merges reaching the model. A test PivotTable built From Data Model, as the lesson builds one, shows each measure on its own before it goes on a report.

What should the weekly trading report built on the model look like, and what does the course leave out of it on purpose?

Focused: product categories down the side, the measures that matter across, and nothing else, which is how The Complete Excel Course with AI Integration builds it in Lesson 171. Category comes from the products lookup into Rows; AOV and Orders are taken out of Values; grand totals are switched off for rows and columns; the layout goes to Tabular Form, so each field has a column of its own and the report reads and exports cleanly; and the values are set in the order a manager asks for them: Total Profit, the category's share of sales, Margin Percentage, then Total Sales. The lesson's reasoning carries straight into a trading meeting: a focused report is understood faster than a complete one, and profit and margin lead because they are asked about first. AOV and the order count still exist as measures, ready for the dashboard that follows.

My product file lists some SKUs twice, once for each supplier: will the relationship to my orders still work?

One row per SKU on the product side makes it work, and The Complete Excel Course with AI Integration teaches both the rule and the clean-up. In Lesson 169 each relationship is one-to-many: the 1 sits on the lookup table, where every code appears once, and the asterisk on the sales table, where codes repeat. A product file with a SKU on two rows breaks that one side, and the relationship cannot be drawn while the duplicates stay. Decide which row is right first, the current supplier's for instance, then remove the rest in Power Query with Remove Duplicates on the SKU column, the step Lesson 160 uses in its own query. Do the clean-up in the query and every refreshed product file arrives with one row per SKU, so the relationship holds week after week. Relationships are drawn in Power Pivot, on Excel for Windows.

Is Power Pivot a separate download, or is it already in the Excel my store uses?

Nothing to fetch: it ships with Excel for Windows, and The Complete Excel Course with AI Integration wakes it up in Lesson 169. Loading the cleaned order table and its lookups with the Data Model box ticked is the first move; the green icon on the Data tab then opens the model, and saying yes to the data analysis add-ins brings up the Power Pivot window with its Diagram View, where the store's tables meet. Lesson 170 writes the measures from the same Power Pivot ribbon. Windows is in the course's requirements for this tool because Excel for Mac leaves it out, so a store team on Macs can build the order queries there and finish the model on the one Windows PC that holds the trading workbook. The PivotTable lessons that open this page's path run in either Excel the course supports.

The agency that runs our ads builds its reports in Power BI: will the DAX in this course let me follow their measures?

Yes: DAX is the formula language of both, and the measures The Complete Excel Course with AI Integration teaches in Lesson 170 are written the same way in a Power BI model. Total Sales as SUM, Orders as DISTINCTCOUNT, Margin Percentage and AOV with DIVIDE, and a category's share of sales with CALCULATE and ALL are everyday Power BI measures too, and the relationships drawn in Diagram View (Lesson 169) are the same one-to-many links a Power BI model uses. So you can read what the agency builds, ask for a measure by its logic, and check one of its figures against your own workbook. Power BI itself is not taught; the course keeps the whole model inside Excel, where the store's files already live. The model and its measures need Excel for Windows.

Returned orders come through as minus figures in my order data: can the model set them beside each channel's sales?

Yes: the return flag made in Power Query travels into the model, and a PivotTable from the Data Model splits every measure by it. The Complete Excel Course with AI Integration adds IsReturn in Lesson 160, which labels every line whose amount is below zero a Return and the rest a Sale, and the column stays part of the order table that Lesson 169 loads into the model. Put channel in the rows of a Data Model PivotTable, IsReturn in the columns and Total Sales in the values, and every channel shows its sales and its returns side by side. Total Profit from Lesson 170 splits the same way, so the profit handed back through returns shows for each channel. A Channel slicer like the one in Lesson 172 narrows the view to one marketplace. The model behind it is built in Power Pivot, on Excel for Windows.

Our quarterly business review is a few weeks away: can I have the model and its measures running by then?

Yes, with time to spare: the lessons on this page come to 1 hour 14 minutes in The Complete Excel Course with AI Integration, and a few evenings cover them with your own files open beside the course's. If PivotTables are new, start with Lesson 57 through Lesson 66, built on order-level sales. Next come the load choices and the fact table (Lesson 162 and Lesson 168), then the model and its measures (Lesson 169 and Lesson 170, Excel for Windows), and finally the trading report and the dashboard (Lesson 171 and Lesson 172). The SalesFusion dataset and the complete workbook come with the course, so each measure can be checked against a finished answer before your own figures go into the review. Finishing the whole course brings a Certificate of Completion that carries 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.