The Complete Excel Course with AI Integration

Power Pivot and DAX for credit analysts

Each month a new loan tape arrives and the same cuts are rebuilt by hand: exposure by sector, arrears by branch, the book by grade, each one more sheet of SUMIFS and lookups. The Complete Excel Course with AI Integration trades that for one Power Pivot model of the book, measured in DAX, on its industry-standard SalesFusion project. Here are the lessons a credit analyst needs from it: dates and buckets in the query, control totals, relationships, measures 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 loan tape with its borrower, branch and grade tables into one Excel data model and relate them on their codes in Diagram View, with no lookup filled down a single row.
  • Write DAX measures for total exposure and for each sector's share of whatever slice of the book is selected, with SUM, DIVIDE, CALCULATE and ALL.
  • Work out the average exposure per borrower with DISTINCTCOUNT and DIVIDE, so an obligor holding several facilities is counted once.
  • Show drawn balances, undrawn commitments and utilisation by sector, and set each sector's exposure against its cap from your credit policy.
  • Label every facility with its days-past-due bucket in Power Query, then measure the share of the book in arrears for any branch, product or grade a slicer picks.
  • Add a drawdown year, a month and a year-month key to every facility as the tape loads, so a PivotTable from the Data Model lists the book month by month in calendar order.
  • Build a portfolio dashboard of PivotTables from the Data Model, with slicers for sector, branch, product and year linked to every table on it.
  • Unpivot a covenant schedule or a target sheet laid out period by period across its columns into the long table a data model reads.

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, the course's Power Query and data model project holds every step a loan book model takes: raw extracts cleaned, one fact table joined to its lookups, two relationships, six DAX measures and four PivotTables answering to shared slicers, each step ready to repeat on a facility listing.

  • Project 05

    SalesPlusPerformance

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

    The course's PivotTable project on order-level sales, and the groundwork every Data Model report stands on: fields placed in rows and values, dates grouped by month, slicers, and the Refresh All button of Lesson 65, one click that carries next month's tape through to every table.

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 11 of them, 1 h 12 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 the loan tape already sits in Excel tables and you have built a PivotTable on it: SalesFusion opens with the finished model, then builds it up from raw files. PivotTables still unfamiliar? Work through Lesson 57 to Lesson 65 before this path; a complete beginner starts the course at Lesson 1. Comfortable with Power Query already? Jump to Lesson 168: the facility table, its relationships and the first DAX measures follow from there.

11 of 186 lessons · 1 h 12 min

15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min The end point before the first query: the finished SalesFusion report, whose slicers also filter a linked detail sheet, then the deliberately messy files it grows from. A loan book model is built in the same order, extracts first and the model on top, so seeing the destination keeps each later step in context.
  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 1 of 21 lessons · 7 min Dates a model can group: entries that are not dates cleared out, the column given a true date type, then year, month name, month number, month start and year-month columns. On a loan tape these turn each drawdown date into a vintage, and the month number keeps the months in calendar order instead of alphabetical.
  1. 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 3 of 21 lessons · 16 min Logic and proof before the model: new columns worked out row by row, from a profit figure to a margin guarded against zero and a label for large sales; a control query that groups by month and region, giving a total and a row count for each pair; and the loading choice that keeps staging queries out of the grid. For credit work: the bucket column, the tie-out to the system and a workbook that stays light.
  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 5 of 21 lessons · 37 min The model itself: a single fact table assembled from the folder data, the history and the lookups, then searched for nulls; that table and its lookups loaded into the Data Model and related in Diagram View; six DAX measures; a tabular report; and four PivotTables under shared slicers. Sales rows are the practice data; a facility listing with borrower, branch and grade tables takes the same shape. Power Pivot's own lessons, Lesson 169 and Lesson 170, need Excel for Windows.
  1. 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
  2. 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 min
  3. 170 DAX measures in Power Pivot Total sales, margin percent and percent of total 10 min
  4. 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
  5. 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 grids: a budget export laid out month by month across its columns becomes rows of month and figure, its text periods turned into real dates, ready for the data model. A covenant schedule holding a test level for every quarter, or lending targets spread across the months, reshapes the same way.
  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 do Power Pivot and DAX give a credit analyst that a sheet of SUMIFS and lookups cannot?

One model of the whole loan book that answers every cut without another formula. The Complete Excel Course with AI Integration from Coding Liquids builds that model with you on its SalesFusion project: industry standard, designed after talking with people from many different industries, its first query reading raw files as untidy as any core banking extract. Power Query cleans the extracts; Lesson 169 loads a fact table and its lookup tables into the Data Model and joins them in Power Pivot on their codes, so nothing is copied down thousands of rows; Lesson 170 writes DAX measures once, for totals, shares of the whole, distinct counts and ratios, and each recalculates for whatever a slicer selects. Exposure by sector, arrears by branch and the book by grade stop being separate sheets that drift apart and become views of one tested model. The 11 lessons picked out here, 1 hour 12 minutes of video, follow a credit desk's reporting from extract to dashboard.

How does the data model tie each facility on the tape to its borrower, branch and grade without a lookup column?

Through relationships, each drawn once with a single drag, and The Complete Excel Course with AI Integration builds them in Lesson 169. Three cleaned queries go into the Data Model, Diagram View lays them out with the fact table between its lookups, and dragging a code column onto the matching column of a lookup table joins the two. The line drawn between them reads one-to-many: a 1 on the lookup side, where each code appears once, an asterisk on the fact side, where it repeats, just as one borrower stands behind many facilities. Your version puts the facility rows in the middle with the borrower, branch, product and grade tables around them, each joined the same way. A PivotTable from the Data Model then sets a borrower's sector beside a facility's balance with no VLOOKUP anywhere. The lesson needs Excel for Windows, as everything in Power Pivot does.

When I slice the book to one branch, can a measure still show each sector's share of that branch's lending?

Yes: that is the percent-of-total measure The Complete Excel Course with AI Integration writes in Lesson 170, and its behaviour under slicers is the whole point. Each category's sales are divided by a total worked out with CALCULATE and ALL, and ALL lifts only the filter it names, the category, so the total still respects every other filter in force. Pointed at your sector column, the measure divides each sector's exposure by the book as the branch slicer leaves it: pick one branch and the shares add up to that branch's lending, clear the slicer and they add up to the whole book. One measure answers the concentration question at every level a review asks about, branch, product or grade, with nothing rewritten. DIVIDE handles the division and shows a blank rather than an error where a slice holds no exposure at all.

Can a measure give the average exposure per borrower for any branch, grade or sector?

Yes, with two measures The Complete Excel Course with AI Integration builds in Lesson 170. DISTINCTCOUNT counts each value once however many rows carry it: the lesson uses it on order numbers, because an order has a row for every product, and a borrower with three facilities on your tape is the same case. DIVIDE then sets total exposure against that count, the way the lesson's average order value sets sales against orders, and the result is exposure per borrower for whatever the slicers pick: one branch, one grade, one sector. Counting rows instead would overstate how many obligors the book holds and shrink the average. Both measures live in the Data Model, so the same pair serves the portfolio summary, the sector review and the watch list without being written again.

Can the model show drawn balances, undrawn commitments and utilisation side by side for each sector?

Yes, and SalesFusion already holds the pattern: a column subtracted in the query, then measures that sum and divide. The Complete Excel Course with AI Integration builds a profit column as sales minus cost in Lesson 160; on your tape the same kind of custom column takes the drawn balance from the facility limit and leaves the undrawn commitment on every row. Lesson 170 then writes the measures: a SUM for the drawn balance, one for the undrawn amount, one for the limits, and utilisation as total drawn over total limit with DIVIDE, the shape of the lesson's margin percentage. With sector on the rows of a PivotTable from the Data Model, all of them sit side by side, and every slicer, branch, grade or product, recalculates them together. Utilisation comes from the totals in view, never from an average of each facility's own percentage, so the largest lines carry their proper weight.

Can DAX give an arrears rate that stays right for every branch and product a slicer picks?

Yes, and a measure is where that rate stays right under every filter. In The Complete Excel Course with AI Integration the margin percentage of Lesson 170 divides profit by sales with DIVIDE, and an arrears rate has the same shape: the balance in arrears over the whole balance. Give the query a column that holds a facility's balance when it is past your threshold and zero otherwise, a custom column with an if test like the margin column of Lesson 160, sum it in one measure and divide by total exposure in the next. The days-past-due bucket belongs in the query too, as a label fixed on each row that a slicer can use. Pick a branch, a product or a grade and the rate is worked out again from the rows in view, not averaged from other rates, which would weight a small branch like a large one.

Can the model work out a balance-weighted average rate or margin across the book?

Yes, with a helper column and a division, both taught in The Complete Excel Course with AI Integration. A weighted average is the sum of each rate times its balance, divided by the sum of the balances. Lesson 160 builds custom columns inside Power Query, so one more column multiplies each facility's rate by its balance as the tape loads; Lesson 170 then writes measures that sum and divide, and its margin percentage is already a ratio of two sums, the very shape of a balance-weighted figure. The result re-weights itself for every slicer: the weighted rate of one sector, one grade or one vintage. Iterator functions such as SUMX, which do the multiplying inside the measure, are not among the lesson's measures; the helper column reaches the same number and stays in view for checking.

Our credit policy caps each sector's exposure: can the model show how much of every cap is used?

Yes: keep the caps in a small table of their own and the model does the rest with skills The Complete Excel Course with AI Integration teaches. Lesson 169 relates lookup tables to the fact table on a shared code, and the course's own product table carries figures beside its names, so a sector table holding one row per sector and its cap is simply one more lookup. Lesson 170 supplies the measures: a SUM of the caps, a SUM of exposure, and usage as exposure over cap with DIVIDE, which leaves a blank instead of an error for a sector that has no cap. With the sector names on the rows of a PivotTable from the Data Model, each line shows exposure, cap and usage together, and a glance down the usage column finds the sectors nearest their limits before the review meets.

My exposure tables run on SUMIFS: how much of that thinking carries over to DAX?

The criteria thinking carries straight over, and The Complete Excel Course with AI Integration makes the link plain. A SUMIFS exposure table names its criteria inside each formula, sector in one argument, grade in the next; a DAX measure from Lesson 170 names none, because the PivotTable supplies them: whatever sits on its rows and columns, plus every slicer, filters the measure before it calculates. So one total exposure measure replaces a whole grid of SUMIFS, each cell worked out for its own sector and grade. The other measures map just as neatly: CALCULATE with ALL is a SUMIFS with one criterion deliberately dropped, DIVIDE is a division with its own guard against zero, and DISTINCTCOUNT is a unique count that needs no helper column. What changes is where the logic lives: in the model, defined once, instead of in hundreds of cells that each have to be checked.

Several borrowers on our tape belong to one parent group: can the model add up exposure by group?

Yes: put the group in the borrower table and the relationship carries it to every facility. The Complete Excel Course with AI Integration shows the mechanism in Lesson 171, where the report's rows come from Category, a column that lives only in the products table, while the figures come from the sales table it is related to. Add a parent group column to your borrower table, relate that table to the facilities as Lesson 169 relates its lookups, and a PivotTable from the Data Model totals exposure by group, with each member company listed beneath when you add the borrower name. A DISTINCTCOUNT measure from Lesson 170 counts the companies in every group, and the percent-of-total measure turns each group's exposure into its share of the book: the connected-exposure view a large-exposures review asks for, refreshed with every tape.

Two analysts get different arrears figures from the same tape: how does a model put an end to that?

By defining each figure once, where every report reads it, and The Complete Excel Course with AI Integration builds both halves. The rules for a row go into the query: Lesson 160 makes the point that logic written in Power Query runs identically at every refresh, so the threshold that puts a facility in arrears is applied the same way for everyone, every month. The arithmetic goes into measures: Lesson 170 keeps them in the Data Model, where Manage Measures lists each one with its formula, and every PivotTable that uses the model draws on that single definition rather than a private copy of a formula. Change the definition and every report changes with it. Two analysts slicing the same model can still choose different branches, but they can no longer disagree about what an arrears rate is.

Power Pivot is missing from my ribbon at work: is it an extra to install?

It is already part of Excel for Windows, waiting to be switched on, and The Complete Excel Course with AI Integration shows where. Lesson 169 goes to the Data Model icon on the Data tab, chooses Manage Data Model and enables the data analysis add-ins when Excel asks, which opens the Power Pivot window and its Diagram View; Lesson 170 then adds measures from Power Pivot's Measures menu. Windows is the course's stated requirement for those lessons, and Excel on a Mac has no Power Pivot, so the model belongs on your Windows machine. The Power Query lessons on this page, from cleaning the tape to Unpivot, sit outside that requirement. Once the model exists, colleagues read it through ordinary PivotTables and slicers and never need to open the Power Pivot window themselves.

Our risk team reports in Power BI: will DAX learned in Excel carry over?

Yes: DAX is the formula language of Power BI's models as well as Power Pivot's, so the measures you write in The Complete Excel Course with AI Integration carry straight across. Lesson 170 works through the functions a portfolio report leans on: SUM for exposure, DIVIDE for ratios that never break on a zero, CALCULATE with ALL for a share of the whole, and DISTINCTCOUNT for counting borrowers once. Lesson 169 teaches the relationships those measures travel along, one lookup to many facts, which is how Power BI models are shaped too. Power BI itself, its report canvas and publishing, is not taught. What you take to it is the part that matters most: a clean fact table from Power Query and measures you understand line by line, built and tested in the Excel your team already uses.

Our book is only a few hundred facilities: is a data model still worth building?

Yes, because the case for a model rests on how many tables and how many repeats, not how many rows, and The Complete Excel Course with AI Integration shows both at work. Even a small book is reported from several tables, the tape, the borrower file, the branch and grade lists, and every month the same cuts are rebuilt. In the model those tables are related once (Lesson 169), the measures are written once (Lesson 170), and the dashboard of Lesson 172 answers each new question with a slicer instead of a new sheet. A few hundred rows also make the ideal place to learn, since every total can be checked by hand against the Group By control query of Lesson 161. When the book grows, the model is already standing, and nothing about it has to change. With lifetime access, the measure lessons stay open for the day it needs a new one.

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.