The Complete Excel Course with AI Integration
Power Pivot and DAX for researchers and PhD students
Study data rarely fits one sheet: participants in one table, visits or readings in another, sites in a third. The Complete Excel Course with AI Integration shows how a Power Pivot data model relates them by ID and how DAX measures count, average and compare them under any filter, inside SalesFusion, one of its industry-standard projects. The lessons here start where clean tables are loaded and finish with a report steered by slicers.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Load cleaned study tables into the Data Model instead of onto sheets, so participant, visit and result tables sit together without copies.
- Relate a participant table to a visits or results table in Diagram View, one-to-many on the participant ID, in place of lookup columns filled down every row.
- Count each participant once with a DISTINCTCOUNT measure, however many visit rows they have.
- Work out per-participant figures with DIVIDE, which leaves a blank, not an error, for an empty group.
- Show each site's or arm's share of the whole with CALCULATE and ALL, a percent of total that holds when the report is filtered.
- Build PivotTables from the Data Model in tabular form, measures in a deliberate order, ready to read like a results table.
- Join slicers for arm, site and wave to every PivotTable with Report Connections, so one choice recalculates every measure.
- Trace a broken measure with Check Formula back to its cause, such as scores stored as text, and fix it in the query.
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 pipeline from raw CSV files to a dashboard, its closing lessons give a researcher with linked tables the whole model: queries loaded to the Data Model, two one-to-many relationships drawn in Diagram View, six DAX measures and four PivotTables steered by shared slicers.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
The course's order-level sales analysis, it trains the PivotTable habits a data model report relies on: fields placed in rows and values, Value Field Settings, dates grouped, slicers and refresh, all before measures take over the totals.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 6 of them, 42 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 162 Close and Load in Power Query
Open the path at Lesson 162 when you can already clean a file in Power Query: it shows where a query's result can go, the Data Model included, and the path climbs from there to the fact table, the relationships and the measures, with Lesson 169 and Lesson 170 needing Excel for Windows. New to Power Query? Build SalesFusion from Lesson 153, since the model stands on its queries. Newer still to Excel? PivotTables begin at Lesson 57 and the course itself at Lesson 1.
6 of 186 lessons · 42 min
15 SalesFusion: advanced data tools and a Power Query modelling system Where a query's result goes: connection only, a table in the grid, or the Data Model, the choice that hands clean study tables to Power Pivot without filling the workbook with copies.
- 162 Start here 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 fact table a model stands on: the sales query merged with its lookup tables, appended to the earlier history, checked for empty keys and held as a connection, ready to be loaded to the Data Model.
- 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 Power Pivot itself, which runs in Excel for Windows: three tables added to the Data Model, two one-to-many relationships drawn in Diagram View, and six DAX measures, from SUM and DIVIDE to DISTINCTCOUNT and a percent of total made with CALCULATE and ALL, with Check Formula tracing an error to its source.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system Reports from the model: a PivotTable of chosen measures by category in tabular form without grand totals, then three more PivotTables from the Data Model, a Top 10 value filter and four slicers joined to every table through Report Connections.
- 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
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
When does a researcher's Excel data need a Power Pivot model and DAX measures?
As soon as it lives in more than one table sharing an ID, such as participants, visits and results, and The Complete Excel Course with AI Integration from Coding Liquids builds that model on SalesFusion, whose industry-standard design came from talking with people in many different industries. Lesson 169 adds three tables to the Data Model and draws two one-to-many relationships in Diagram View, so a sales table and its product and region tables answer questions together without a single lookup column. Lesson 170 writes the measures, DAX formulas that recalculate for every filter: totals, a distinct count, a percent of total and averages built with DIVIDE. Put a participants table, a visits table and a sites table in their places and the same model reports your study. Across 6 lessons and 42 minutes, the path goes from loaded tables to a finished report, and its Power Pivot lessons run in Excel for Windows.
Which of my study tables sits on the one side of a relationship, and which on the many?
The table with one row per participant sits on the one side and anything recorded repeatedly sits on the many side, and The Complete Excel Course with AI Integration shows how to read both in Lesson 169. In Diagram View the relationship line carries a 1 at the lookup table, where each code appears once, and an asterisk at the sales table, where it appears many times. Your participant table, one row per ID with age group, arm and site, plays the lookup part; visits, readings or questionnaire waves, with the ID repeated on every row, play the sales part. Dragging the ID column of one onto the other creates the link, and a sites table joins by its site code in the same way, as the lesson's region table does. One relationship drawn once replaces a lookup filled down every row, and it never breaks when rows are added.
How does a data model stop one participant being counted once per visit?
With a DISTINCTCOUNT measure, which The Complete Excel Course with AI Integration writes in Lesson 170. The lesson's Orders measure counts each order ID once, although an order fills a row for every product in it, where a count of rows would have inflated the figure. Point the same measure at participant ID in a table of visits and it returns the number of people, not the number of appointments, and because it is a measure it stays right under every filter: participants per site, per arm, per wave, each counted once. That number is the n in most tables of a thesis, and miscounting it is the classic error of repeated-measures data kept in Excel. Set beside a plain count of rows, the same measure also shows how many visits each group logged, which is often worth reporting in its own right.
Can DAX work out a figure per participant when each row is a visit?
Yes: divide a total by a distinct count, the pattern The Complete Excel Course with AI Integration uses for average order value in Lesson 170. The AOV measure there is total sales divided by the number of distinct orders, written with DIVIDE, which returns a blank instead of an error when the divisor is zero. On study data the same shape gives visits per participant, total dose per participant or readings per participant: the total from the many-side table over the DISTINCTCOUNT of participant IDs. Because it is a measure, it recalculates for each site, arm or wave you place in the PivotTable, and an empty group shows nothing rather than an error that spoils the table. The Margin Percentage measure in the same lesson uses DIVIDE for a ratio, the form a rate or a proportion in your own data takes.
Can a measure give each site's share of all participants and keep it right when the report is filtered?
Yes: CALCULATE with ALL builds it, and The Complete Excel Course with AI Integration teaches the measure in Lesson 170. The lesson's Sales Percentage of Total by Category divides each category's sales by a total that CALCULATE works out with ALL lifting the category filter, so every row is set against the whole rather than against itself. Swap category for site or arm and you have each group's share of all participants, the percentages a description of a sample reports, and a slicer that narrows the report to one wave narrows both parts of the share together. Lesson 172 formats such measures with Percent Style and two decimal places, so the table reads as it would in print. Shares that stay right under filters are where worksheet formulas turn fragile, and one measure settles it for good.
What happens to every measure when I pick one arm or one site on a slicer?
Every measure recalculates for the slice you pick, and The Complete Excel Course with AI Integration wires that up in Lesson 172. Measures recalculate for every filter and slicer by design (Lesson 170); the dashboard lesson then builds four PivotTables from the Data Model, adds slicers for category, channel, year and region, and uses Report Connections to link each slicer to all four tables. For a study, slicers for arm, site and wave do the same work: choose one arm and the participant count, the per-participant figures, the shares and the top lists all update together, from one model, with nothing copied or rebuilt by hand. Report Connections is the step that matters, since a slicer otherwise steers only the PivotTable it was inserted from, and the lesson connects every one.
Does a participant's change score belong in the query or in a DAX measure?
In the query, while the summaries of it belong in measures, and The Complete Excel Course with AI Integration teaches both halves. A change score is a fact about one participant at one visit, so it is calculated row by row, the way Lesson 160 builds profit and margin columns inside Power Query: fixed, visible and identical at every refresh. What the report needs from it, the change per participant in each arm or each arm's share of the total, depends on what the reader has filtered, and that is the work measures do (Lesson 170). The lessons draw the line in the same place: Power Query cleans and derives, Power Pivot connects and summarises. Keeping to that split stops a workbook filling with helper columns that only one report ever used, and keeps every summary traceable to the rows beneath it.
Should baseline and follow-up sit in one table or two before the model is built?
One long table, with a column saying which wave each row belongs to, and The Complete Excel Course with AI Integration builds exactly that shape before its model. Lesson 168 appends the earlier sales history to the new rows to make one fact table, and its date columns then tell the years apart in every report, as Lesson 172 does by placing Year above the sale dates. For a study, append the baseline and follow-up files into one visits table with a wave column, relate it to the participant table by ID, and a slicer or a row field splits every measure by wave. Two separate tables would need two sets of relationships and measures that never quite line up. The long table also grows cleanly: the next wave is one more append, taken in when the workbook is refreshed.
Why write a DAX measure instead of adding another helper column to my data?
Because a measure is worked out only for the cells a report shows, at the moment it shows them, and The Complete Excel Course with AI Integration builds its model that way. In Lesson 170 total sales, profit, orders, margin and average order value are all measures: none adds a column to the table, and each recalculates for whatever the PivotTable rows, columns and slicers ask. A helper column, by contrast, is computed for every row, stored in the file and fixed in meaning, and Lesson 168 warns that unneeded columns bite back as a model grows. On a large study table that difference shows in file size and speed. Row-level variables still belong in the query; anything that is a total, a count, a share or a figure per participant across rows is a measure's job.
A measure fails on my score column: what does the course teach about finding the cause?
Check Formula finds it, and The Complete Excel Course with AI Integration walks through a real failure in Lesson 170. The Total Sales measure there will not work; Manage Measures, Edit and Check Formula trace the trouble to amounts stored as text, the type is fixed back in Power Query, and the measure is rebuilt. Score columns in study exports fail the same way: a stray letter, a note typed into a cell or a missing-value code that turns a whole column into text. The fix belongs upstream, where Lesson 158 sets each column's true type and Replace Values clears what does not belong, so the model receives numbers and every measure built on them works. A measure is only as sound as the column under it, and the lesson makes that plain with a failure you repair yourself.
Can a report from the data model be laid out like a results table in a thesis?
Yes, and The Complete Excel Course with AI Integration spends Lesson 171 on exactly that kind of shaping. The report starts as a test PivotTable from the Data Model; then Category goes to Rows, two measures leave the Values area, grand totals are switched off for rows and columns, the layout changes to tabular form, and the remaining measures are reordered so the figure readers ask about first comes first. For a thesis, groups in rows with n, per-participant figures and shares in columns, in tabular form, is the familiar first table of a results chapter, and the lesson's rule that a focused report communicates faster than a complete one suits any examiner. Lesson 172 adds percentage formats with two decimals and consistent headings, and the table stays live to the model as data is corrected.
My fieldwork laptop is a Mac: which part of this path calls for a Windows machine?
The two Power Pivot lessons, Lesson 169 and Lesson 170, need Excel for Windows, as the requirements of The Complete Excel Course with AI Integration state, so plan on one Windows PC for building the model. Everything that leads up to them in the course, from formulas and PivotTables to the Power Query cleaning of SalesFusion, runs in Excel on either system, so a Mac user can prepare clean study tables and the Windows machine can relate and measure them. Researchers who already work on Windows have nothing to change: the data analysis add-ins are switched on from the Data Model button on the Data tab, as Lesson 169 shows the first time they are needed, and no download is involved. The data model, its relationships and its measures are then saved inside the workbook itself.
Do I need the Power Query lessons before Power Pivot?
They are the natural way in, and The Complete Excel Course with AI Integration places them directly before the model for that reason. The data model of Lesson 169 is built from queries SalesFusion has already made: the Main Sales File fact table and the product and region lookups, loaded to the Data Model rather than to sheets. Building those queries yourself, from Lesson 153, is what makes the model's tables familiar when they appear in Diagram View, and it is also the skill your own study tables need before they can be related. The finished SalesFusion workbook comes with the practice files, so every stage can be compared with a working version. Someone whose tables already arrive clean can move briskly through the cleaning and spend their time on relationships and measures.
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 researchers
- Lookups for researchers
- PivotTables for researchers
- Charts for researchers
- Dashboards for researchers
- Conditional formatting for researchers
- Data cleaning for researchers
- Data validation for researchers
- Excel tables for researchers
- Text functions for researchers
- Date functions for researchers
- Dynamic arrays for researchers
- Power Query for researchers
- Copilot in Excel for researchers
- ChatGPT for Excel for researchers
- Claude in Excel for researchers