The Complete Excel Course with AI Integration
Power Pivot and DAX for treasury analysts
Treasury reports often run on linked workbooks where XLOOKUP fills bank, entity and limit down every statement line, and one broken link spoils the morning position. The Complete Excel Course with AI Integration replaces that with a Power Pivot data model on SalesFusion, its industry-standard data project. The lessons here cover a treasury analyst's needs: amounts and dates fit for measures, tie-outs in the query, relationships, DAX measures and a dashboard sliced by entity.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Relate statement lines to your bank account list and counterparty list in the Power Pivot data model, so bank, entity and limit reach every line without a lookup column.
- Turn a bank export's separate debit and credit columns into one signed amount with a Power Query custom column, label each line a receipt or a payment, and total net flow with a DAX SUM measure.
- Measure how much of the cash each bank holds with DIVIDE, CALCULATE and ALL, a figure that is worked out again for one entity when a slicer is clicked, and set the cash placed with each bank against its limit.
- Count the accounts that moved and the payments made, rather than the lines posted, with DISTINCTCOUNT.
- Tie the model to each bank's own totals with a Group By control query by account and day, and trace a failing measure to its column with Check Formula.
- Turn a rolling cash forecast with one column per week into rows the data model reads, with Unpivot Other Columns.
- Build a liquidity dashboard from the data model: cash by bank, by entity and over time, the counterparties holding the most, and slicers that reach every PivotTable through Report Connections.
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 hands a treasury analyst the full pattern of a cash model: one fact table related to its lookup lists in Diagram View, six DAX measures running from a plain total to a share of the whole and a distinct count, and four PivotTables answering to the same slicers.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it is where PivotTables, grouping by date, slicers and Refresh All become routine, and every report a treasury data model produces is a PivotTable, so these are the controls you will use on the cash position each morning.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 13 of them, 1 h 25 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 153 SalesFusion Power Query project
Start at Lesson 153 if PivotTables are already part of your week: SalesFusion opens there with the finished report, then prepares the tables a model needs before Power Pivot arrives. New to PivotTables? Take them from Lesson 57 first, slicers and Refresh included; a first-time Excel user starts at Lesson 1. Statement files already tidied by your own queries? Go to Lesson 168 for the fact table, or straight to Lesson 169 for the data model.
13 of 186 lessons · 1 h 25 min
15 SalesFusion: advanced data tools and a Power Query modelling system Where the model is heading before the first query runs: the finished SalesFusion report, whose business view filters a linked detail sheet by itself, and the data model introduced as the map of how tables relate. For a treasury analyst it sets the picture of statement lines and account lists becoming one connected report.
- 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 The two repairs every measure depends on. Amounts become true decimal numbers, because a report over text looks fine and calculates wrong, and dates gain year, month, month number and year-month columns, so a monthly view of flows sorts in calendar order instead of alphabetically. The lessons repair sales exports; a bank file with amounts held as text is put right the same way.
- 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
- 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 Treasury's rules, written once in the query: a column that takes one amount from another, a label read from a figure's sign, a flag for large values and duplicates removed; a Group By query of totals and row counts as the control; Close and Load to a connection or the Data Model; and the merge that brings details in beside each row with a left outer join. Read for cash work: signed net flow, receipts and payments, large-payment flags, statement tie-outs and a rate matched to each line.
- 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
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system The single fact table a model wants: lookups merged in, history appended, unneeded columns dropped, blanks checked after every merge and the result kept as a connection. Every statement line your model reads can arrive the same way, in one table and checked.
- 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 and DAX themselves: three tables added to the Data Model and related one-to-many in Diagram View, six measures written with SUM, DIVIDE, CALCULATE, ALL and DISTINCTCOUNT, a tabular report led by the figures people ask about first, and a dashboard of four PivotTables and four slicers joined by Report Connections. Diagram View and the measures are Power Pivot work, which runs in Excel for Windows.
- 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 Unpivot for treasury's wide sheets: an export with one column per period is turned into rows, each holding a period and its figure, ready for the data model. Unpivot Other Columns names no period column, so a rolling forecast that adds a week and drops another refreshes without a fault.
- 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.
Power Pivot and DAX for treasury analysts: could one data model retire the linked workbooks behind my cash report?
Yes. The Complete Excel Course with AI Integration from Coding Liquids teaches Power Pivot and DAX on SalesFusion, an industry-standard project designed after talking with people from many different industries, and it finishes where a treasury analyst wants to be: clean tables in a data model, related in Diagram View, measured with DAX and read through PivotTables and slicers. The 13 lessons chosen for cash reporting take 1 hour 25 minutes, from amount columns a measure can trust to a dashboard of four linked PivotTables. The lessons run on sales files, so your statement lines, bank account list and counterparty limits stand where the orders, regions and products stand, and every step carries across. Each table and measure is yours to build from the SalesFusion files, a finished copy beside you for checking, and the result replaces the lookup chains that break when one linked file moves.
Our bank account list holds each account once, and the statement repeats it on every line: is that the shape Power Pivot relates?
Exactly that shape, and The Complete Excel Course with AI Integration teaches it in Lesson 169. The lesson adds a sales table and two lookup tables to the Data Model, opens Diagram View and drags each code onto its match, giving two one-to-many relationships: the 1 marks the lookup table, where each code appears once, and the asterisk marks the table where it repeats. For treasury, the account list is the one side, holding bank, entity and account type against each account number, and the statement lines are the many side. With the line drawn, a PivotTable from the model shows cash by bank or by entity with no XLOOKUP filled down the statement, the job the lesson gives a relationship in place of a lookup dragged down thousands of rows. The one side must hold each number once, so a duplicated account is cleared first with Remove Duplicates (Lesson 160).
Our bank export has a debit column and a credit column: how does the model get one signed net flow?
From a custom column in the query and a SUM measure in the model, both taught in The Complete Excel Course with AI Integration. Lesson 160 adds a column that takes one amount from another, profit as sales minus cost, and a second that labels each row by the sign of its figure, a negative sale marked as a return. Point the same two moves at a bank file: credit minus debit gives one signed amount per line, and a receipt or payment label read from its sign gives a slicer something to split by. Blank cells need a zero first, because in a query a blank minus a figure stays blank, and Replace Values, met in Lesson 157, can put the zero in. Lesson 170 then writes the measures, the first a plain SUM of one column, and every PivotTable built from the model totals net flow by bank, account or day through it.
Our policy caps the cash held with any one bank: can a measure show each bank's share, entity by entity?
Yes, and it is one of the six measures The Complete Excel Course with AI Integration writes in Lesson 170. Its percent-of-total measure divides each category's sales by the sales of all categories, with CALCULATE and ALL lifting the category filter to reach the whole, and DIVIDE giving a blank instead of an error where the whole is zero. Put bank where the lesson has category and the measure returns the slice of the cash each bank holds. Because ALL lifts only the bank filter, an entity slicer still applies: pick one subsidiary and every share is worked out against that subsidiary's cash, the way a concentration limit is usually read. Lesson 172 joins each slicer to every PivotTable on the page through Report Connections, and conditional formatting, taught from Lesson 15, can colour any share above your policy line.
Each bank has a deposit limit in our counterparty list: can the model show how much of it is in use?
Yes, with two more measures built from functions The Complete Excel Course with AI Integration teaches in Lesson 170. A SUM of the limit column gives each bank its limit on any PivotTable whose rows take the bank from the counterparty list, and a DIVIDE measure sets the cash placed with that bank over its limit, the same one-measure-over-another pattern as the lesson's margin percentage. DIVIDE earns its place here: a bank with no limit recorded shows a blank rather than an error, so one gap in the list does not spoil the report. Relationships of the kind taught in Lesson 169, drawn from the counterparty list to the account list and from there to the statement lines, let exposure and limit meet on one row without a lookup column. A Top 10 value filter on utilisation, as Lesson 172 uses for products, lists the banks nearest their limits.
How many of our accounts actually moved today, and how many payments went out rather than payment lines?
DISTINCTCOUNT answers both, and The Complete Excel Course with AI Integration teaches it in Lesson 170, where the Orders measure counts each order once although an order has a row for every product on it. A bank statement behaves the same way: a payment run can post a line for each invoice it settles, so a count of rows overstates the payments made. A distinct count of the payment reference gives the true number, and a distinct count of the account number, with today's date picked in a slicer, gives the accounts that moved. Set that against a distinct count on the account list itself, which no date slicer narrows, and the silent accounts show, useful when a missing statement and a quiet account look alike. The same lesson's AOV measure, one total divided by a count, becomes the average payment, a quick sign that a batch is out of pattern.
Flows add up across days but balances do not: can one model report both?
Yes: each gets its own table and is read the way treasury reads it, with the plain measures The Complete Excel Course with AI Integration teaches in Lesson 170. Statement lines are flows, and a SUM of them is right for any day, week or month, so the monthly trend of Lesson 172, with years above dates on the rows, works on them as built. End-of-day balances, one row per account per day, add across accounts but never across days, so a balance report keeps the date on its rows or in a slicer and switches its totals off, as Lesson 171 does with grand totals. Both tables relate to the same account list, so one entity slicer filters flows and balances together. DAX's closing-balance functions are not taught; for the daily position and the movement behind it, two SUM measures and that one rule cover the work.
Some accounts hold foreign-denominated balances: should the FX conversion happen in Power Query or in a DAX measure?
In the query, and The Complete Excel Course with AI Integration teaches both moves it takes. Lesson 163 merges one table into another with a left outer join, which keeps every row and fills in matching details alongside; merge a table of FX rates on the denomination code and the date, and each statement line carries its own rate. A custom column, built the way Lesson 160 builds profit, multiplies the amount by that rate, so the model receives one converted column next to the original. The measures of Lesson 170 then stay plain sums and divisions, quick to check and identical on every PivotTable. A line without a rate comes back blank after the join, and Lesson 168 makes a blank check the habit after every merge, so a missing rate is caught before it shrinks a total. Conversion written inside a DAX measure is not taught; the query route serves a daily report well.
When the intraday and end-of-day statements overlap, will the model count a line twice?
The query takes the copy out before the model sees it, and The Complete Excel Course with AI Integration builds that guard in Lesson 160, where Remove Duplicates runs on the order ID before anything is loaded. On a bank file the key is the bank's own transaction reference, or a set of columns that together tell one line from another where the bank gives none, so a line that arrives in both files is kept once. The control totals of Lesson 161, row counts beside sums, then show a doubled day at once against the statement's own line count. The model adds a last safeguard, since Lesson 170 counts with DISTINCTCOUNT where a count matters: a reference that slipped through twice is still one payment in the count, though its amount would sit twice in the sum, which is exactly why the removal belongs in the query and not in the report.
Every bank statement carries its own totals: can the model's figures be tied to them account by account?
Yes, and The Complete Excel Course with AI Integration builds the tie-out into the workbook instead of leaving it to a calculator. Lesson 161 makes a reference query that groups the data, sums the amount and counts the rows for each month and region, then sorts the biggest first, so a figure that looks too good stands out; grouped by account and day instead, it lists the totals to set beside each statement's own. Lesson 168 adds the checks that follow every merge and append, filtering for blanks before the table is loaded as a connection. In the model, Lesson 170 shows Check Formula tracing a failing measure to an amount column held as text, and the fix made where it belongs, in the query. Together they give a cash figure you can defend line by line when the treasurer asks where it came from.
Our rolling cash forecast is a grid with one column per week: can the data model read it?
Unpivot turns the grid into the rows a data model reads, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a budget export laid out month by month across the sheet. The descriptive columns are held still while each period's column turns into rows, a period and its figure on each; because the command names no period column, the week added on Monday and the week dropped from the far end cannot break the query. The lesson then builds a proper month-start date out of the header text; a forecast treated the same way sorts and groups by time, and Group By totals it per period into a compact table for the model. Setting forecast against actual flows in one PivotTable needs a shared calendar table, which is not taught; the course's own plan-against-actual model is FinanceGuard (Lesson 117), built with SUMIFS.
Can the model give the treasury committee one page of cash by bank, by entity and over time, with the largest counterparties on top?
Yes: Lesson 172 in The Complete Excel Course with AI Integration builds that kind of page, four PivotTables from the Data Model answering to four slicers. The lesson's tables show sales by category, sales by region, a monthly trend with years above dates and a top ten of products through a Top 10 value filter; for a treasury committee they become cash by bank, cash by entity, the monthly path of net flows and the ten counterparties holding the most. Report Connections ties every slicer to all four tables, so one click on an entity or a year redraws the page, and matching styles and headings make it read as one report. Lesson 171 shapes the tables first: tabular form, grand totals off and the figures people ask about placed first. Shares show as percentages rather than raw decimals, so a concentration figure reads at a glance.
Each subsidiary sends its own bank file: does the model need a workbook per entity?
One model holds every entity, and The Complete Excel Course with AI Integration shows how on each side of the work. Power Query stacks the files: Lesson 165 appends tables whose headers match, Lesson 166 gathers a whole folder of files into one query that records which file supplied each row, and Lesson 168 builds one fact table from the result. The entity itself need not be typed into any file: in the model it comes from the account list, related to the statement lines in Lesson 169, so every line knows its entity, bank and account type the moment the relationship exists. A slicer on entity then splits cash, flows and shares on every PivotTable together, and the group figure returns when the slicer is cleared. Files with different layouts need a query each before they meet in the stack; files from one bank's standard export already share theirs.
The cash position is due every morning: how much course time stands between me and my own model?
About 1 hour 25 minutes, and the model starts paying back before the last of it. In The Complete Excel Course with AI Integration the tables are fit for measures by Lesson 162, the fact table is assembled in Lesson 168, and by the end of Lesson 170 relationships and six measures are in place: rebuild that much on your own statement export, account list and counterparty list, and the morning position comes from a PivotTable rather than a chain of lookups. The report, the dashboard and Unpivot follow. The Power Pivot lessons, Lesson 169 and Lesson 170, need Excel for Windows, so a desk on Mac takes them on a Windows PC. Practice files and a completed SalesFusion workbook are included, lifetime access means the lessons are there again when a bank changes its file layout, and on the plan with instructor support, the instructor answers in writing when your own model raises a question.
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 treasury
- XLOOKUP and VLOOKUP for treasury
- Pivot tables for treasury
- Excel charts for treasury
- Excel dashboards for treasury
- Conditional formatting for treasury
- Data cleaning for treasury
- Data validation for treasury
- Excel tables for treasury
- Text functions for treasury
- Date functions for treasury
- Dynamic arrays for treasury
- Power Query for treasury
- Macros and VBA for treasury
- Power Automate for treasury
- Copilot in Excel for treasury
- ChatGPT for Excel for treasury
- Claude in Excel for treasury
Power Pivot and DAX for other jobs
- Power Pivot and DAX for controllers
- Power Pivot and DAX for credit control
- Power Pivot and DAX for AP clerks
- Power Pivot and DAX for planners
- Power Pivot and DAX for credit analysts
- Power Pivot and DAX for underwriters
- Power Pivot and DAX for claims handlers
- Power Pivot and DAX for reconciliations
- Power Pivot and DAX for every job