The Complete Excel Course with AI Integration

Power Pivot and DAX for team leaders in Excel

A team leader's figures rarely sit in one file: the activity export, the roster, the hours and a targets grid arrive apart, and joining them by hand eats the week. The Complete Excel Course with AI Integration replaces that chore with a Power Pivot data model on SalesFusion, one of its industry-standard projects. Picked out here: the Power Query lessons that prepare such files, the relationships joining them, the DAX measures a manager reports and the dashboard they feed.

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 the team's activity export to the roster in a Power Pivot data model on the staff ID, so no VLOOKUP is filled down a sheet again.
  • Write DAX measures once for the team's KPIs: totals with SUM, people counted once with DISTINCTCOUNT, figures per person with DIVIDE and shares of the team with CALCULATE and ALL.
  • Line up output, hours and errors from separate exports beside each name, with output per hour as a DIVIDE measure that shows a blank, not an error, for an empty week.
  • Rank the busiest people or kinds of work with a Top 10 value filter that reorders itself at every refresh and for every slicer.
  • Report two teams or sites apart and together from one model, with slicers joined to every PivotTable through Report Connections.
  • Clean and stack each week's exports in Power Query before they reach the model, so a new file saved in the folder joins at the next refresh.
  • Reshape a targets grid that runs one month to a column into the long table a data model reads, using Unpivot, so next month's column is absorbed with the query left as it is.
  • Trace a measure that returns an error to a column stored as text, fix the column in Power Query and rebuild the measure.

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 on sales files, it walks a team leader through the whole chain behind a weekly report: messy exports cleaned and stacked in Power Query, lookup tables related in Power Pivot, six DAX measures, and four PivotTables answering to one set of slicers.

  • Project 05

    SalesPlusPerformance

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

    Built on order-level sales data, it is where the PivotTable habits come from that every data model report relies on: fields placed in rows and values, dates grouped, slicers added and the report refreshed when new rows land.

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

Where to start

Lesson 153 SalesFusion Power Query project

Begin at Lesson 153 if your weekly report already uses PivotTables: SalesFusion opens there, and its Power Query lessons produce the clean tables a model is built from. If PivotTables are still unfamiliar, the run from Lesson 57 to Lesson 65 sets them up first, and someone opening Excel for the first time starts at Lesson 1. Already shaping exports in Power Query? Go straight to Lesson 169, where the data model and DAX begin, in Excel for Windows.

21 of 186 lessons · 2 h 7 min

15 SalesFusion: advanced data tools and a Power Query modelling system 10 of 21 lessons · 53 min Getting a raw export ready for a model: why a clean-up set up once repeats itself on every file, then the export imported through Get Data, its columns pruned and renamed, codes trimmed and given one case, numbers and dates typed properly, year and month fields added, profit and flag columns calculated, a reference query that checks totals and row counts for each month and region, and the load options that put a finished table into the Data Model. The files hold sales; a team's activity export goes through the same steps.
  1. 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
  2. 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
  3. 155 Import a CSV with Power Query Get data from text and transform data 2 min
  4. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  5. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  6. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  7. 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
  8. 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
  9. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  10. 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 6 of 21 lessons · 35 min One fact table from many files: a merge that fetches each code's name from its lookup table, the cleaning repeated on a second year's export, both years stacked into a single timeline, a whole folder of files combined so that next week's is taken in on the next refresh, and finally a master table checked for empty values and kept as a connection for the model.
  1. 163 Merge queries in Power Query Look up product and region names with a left join 5 min
  2. 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
  3. 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
  4. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  5. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  6. 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 model and what it reports: tables related in Diagram View, DAX measures for totals, distinct counts, averages, margin and percent of total, a tabular PivotTable report from the data model, and a dashboard of four PivotTables and four slicers joined by Report Connections. Relating the tables and writing the measures call for Excel for Windows.
  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 Unpivot for the grids a manager is sent: the lesson's budget file runs its sales budgets and unit targets one month to a column, and Unpivot turns it into a long table for the data model that still works when another month is added.
  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.

Can a team leader write the team's KPIs once in DAX and read them for any person, site or month?

Yes, and that is the heart of DAX. A SUMIFS on a team scorecard returns one figure for the criteria it was given, so each new view means more formulas to write and check; a measure is written once in the data model and recalculates for whatever the PivotTable and its slicers select, one person, one site, one month or the whole team. The Complete Excel Course with AI Integration from Coding Liquids builds the skill on SalesFusion, a project that is industry standard and was designed after talking with people from many different industries: Lesson 169 relates the tables in Power Pivot, Lesson 170 writes six measures with SUM, DISTINCTCOUNT, DIVIDE and CALCULATE, and Lesson 172 sets four PivotTables under four shared slicers. The 21 lessons picked out for this page run from the raw export to that finished report, 2 hours 7 minutes in all, built by hand from the course's own files. Power Pivot, and with it the model and its measures, runs in Excel for Windows.

This path starts with Power Query lessons: why, when it is Power Pivot I came for?

Because a model is only as sound as the tables loaded into it, and Power Query is where those tables are made. In The Complete Excel Course with AI Integration, the SalesFusion model of Lesson 169 is built on a master table that the Power Query lessons produce: exports cleaned of stray spaces, symbols and text where numbers belong (Lesson 157 and Lesson 158), a whole folder of files stacked so that a new file joins at the next refresh (Lesson 166), and lookups merged and history appended into one table held as a connection (Lesson 168). Lesson 170 then shows why that order matters: a measure fails, the cause turns out to be a column stored as text, and the fix is made in Power Query before the measure is rebuilt. If you already shape exports in Power Query, start at Lesson 169 and keep the earlier lessons as a reference.

Every week I paste the roster beside the export and fill VLOOKUPs down: what does a relationship do instead?

It joins the two tables once, and every row of every later export finds its person without a formula. In The Complete Excel Course with AI Integration, Lesson 169 loads a sales table and two lookup tables into the data model, then in Diagram View drags a code in one table onto the same code in another, making two one-to-many relationships. That single drag replaces a VLOOKUP filled down thousands of rows, so the sheet loses the weight of all those formulas, and nothing needs filling again when next week's rows arrive. Load your roster the same way, related on the staff ID, and every line of activity carries the person's name, role and shift into any PivotTable built on the model. Relating on an ID rather than a name also copes with the colleague whose name each system spells its own way. Power Pivot runs in Excel for Windows.

Output, hours and errors arrive in three different exports: can the model line them up for each person?

Yes, through the roster they all share, and the course teaches every move involved. The Complete Excel Course with AI Integration relates one sales table to two lookups in Lesson 169; an hours export and an errors export related to the same roster on the staff ID are the same drag in Diagram View, repeated. Each export then gets its own SUM measure, and Lesson 170 shows the DIVIDE measure that sets one total against another, as its margin percentage sets profit against sales: output over hours gives output per hour, errors over output gives an error rate, and someone who logged no hours shows a blank rather than an error. Put the roster's names in the rows of a PivotTable from the data model and the three exports stand side by side, one line per person. Clean the staff IDs in Power Query first (Lesson 157), so every row finds its person.

Which kinds of work take up most of the team's time: can a measure give each one its share?

Yes: a percent-of-total measure does exactly that, and The Complete Excel Course with AI Integration builds one in Lesson 170. The lesson's measure sets each product category's sales against the grand total, with CALCULATE and ALL lifting the category filter to reach that total and DIVIDE keeping the share safe when a figure is empty. Point the same pattern at a work-type column and every kind of work your team logs, calls, cases, admin or training, shows its share of the hours or tasks recorded. Because it is a measure, the shares recalculate for any person, site or month a slicer picks, so you can see whether one person's week leans harder towards one kind of work than the team's does. Lesson 172 then formats such shares as percentages, so a raw fraction becomes a figure a manager takes in at a glance.

Can the report rank the ten busiest people or work types and keep the ranking current?

Yes: a Top 10 value filter on a PivotTable from the data model does it, and The Complete Excel Course with AI Integration applies one in Lesson 172. The lesson ranks products by a measure and keeps the ten highest; on your model the same filter ranks people, work types or sites by whichever measure you choose, output, hours or output per hour. Because the ranking is worked out from the measure each time, it reorders itself at every refresh and for every slicer selection, so this month's leaders at one site are a click away from last month's at another. In the lesson it sits beside a view by category, a view by region and a monthly trend, all answering to the same slicers. Read a ranking of people beside the measures that give it context, and it becomes a quick way to see who to thank and who may need support.

I lead two teams on different sites: can one model report them apart and together?

Yes, with no copy of the model per team. Both teams' rows go into one fact table, as The Complete Excel Course with AI Integration stacks two years of sales into one in Lesson 165, and the site comes from the roster or a site list related in the data model (Lesson 169). A slicer on the site field shows one team; clear it and the page shows both. Lesson 170 supplies the measures that keep the comparison fair: DISTINCTCOUNT gives each team's headcount from the people who logged work, DIVIDE turns totals into figures per person, so a larger team does not look better merely for being larger, and a percent-of-total measure shows each site's share of the whole. With the four slicers of Lesson 172 connected to every PivotTable, the whole page moves between one team, the other and both together.

Each supervisor works out the team's figures a slightly different way: can the model hold one definition for everyone?

Yes: a measure is one definition, stored in the data model, and every report built on it uses the same one. In The Complete Excel Course with AI Integration, Lesson 170 creates each measure once from Power Pivot's Measures menu, and every PivotTable drawn from the model, whether by category, region, month or product, shows that calculation filtered its own way. Manage Measures lists them for anyone to open, read and check, so the definition of output per person is on view rather than buried in one supervisor's cell. Rules that belong a step earlier go into Power Query, where Lesson 160 adds custom and conditional columns, a profit figure and a high-value flag among them, that run identically at every refresh. Agree each definition with the supervisors, write it once, and the same argument does not come back next month.

What is a KPI in Power Pivot, and can the team scorecard use one?

A KPI in Power Pivot is a measure judged against a target, and every KPI starts with measures of the kind The Complete Excel Course with AI Integration teaches you to write. Lesson 170 builds totals, distinct counts, margin and percent-of-total measures in the data model, the base figures a scorecard is judged on, and Lesson 172 formats percentages so they read at a glance. Targets often arrive as a grid with a month per column; Lesson 173 reshapes exactly that shape, a budget file whose sales budgets and unit targets run across the months, into a long table made for the data model, and a new month's column never breaks it. Power Pivot's own KPI dialog, with its status icons, is not among the lessons, and the measures it would judge are. For the headline tiles at the top of a team report, KPI cards are built in MarketPulse (Lesson 112) and FinanceGuard (Lesson 121).

Reports from head office arrive built on a data model: will I understand them well enough to question a figure?

Yes, because you will have built one yourself, and a model keeps few secrets from someone who has. The Complete Excel Course with AI Integration takes you through each layer in turn. Diagram View in Lesson 169 shows which tables are related and on which codes, so you can see where a person or a site gets its name. Lesson 170 shows that a measure recalculates for every filter, which explains why the same figure changes from one page of a report to the next, and its percent-of-total measure shows ALL inside CALCULATE reaching past a filter to the grand total, which tells you what a share is a share of. The same lesson traces a measure's error to a column stored as text and fixes it at the source. DAX is also the language of Power BI, so a head office dashboard built there reads the same way.

My manager reads the top of a report and little else: what should a report from the model lead with?

The figure your manager asks about first, and The Complete Excel Course with AI Integration shows that choice being made in Lesson 171. The lesson builds its report from the data model and then edits it down: two measures come out of the values, the grand totals are switched off, the remaining measures are reordered so that profit leads, and the totals get a number format that reads cleanly. Its own reasoning is the rule to keep: a focused report communicates faster than a complete one. Tabular form gives each field its own column, easier to read and to export than the compact view. Lesson 172 then adds percentages a reader takes in at a glance, matching styles and clear headings. For a team, that means output and output per hour on the first line, with the detail a click away in the slicers rather than crowding the page your manager opens.

If I move on, will the next team leader be able to see how the report works?

Yes, more easily than with any sheet of formulas, because every part of a model is documented as it is built. In The Complete Excel Course with AI Integration, Power Query records every change as a step you can rename to say what it does (Lesson 156), and clicking a step brings back the table exactly as it was at that stage. Diagram View (Lesson 169) maps the tables and the codes that link them, and Manage Measures (Lesson 170) lists every DAX formula by name, each one open to read. Lesson 153 adds the rule that keeps the whole thing working on someone else's desk: every source file in one project folder. Hand over the folder and the workbook together, and your successor inherits a report they can read, refresh and extend, not a puzzle to solve.

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.