The Complete Excel Course with AI Integration
Power Query for insurance underwriters
Bordereaux from coverholders, loss runs from brokers and policy listings from the system arrive in different shapes, and each needs the same work before anyone rates from it. The Complete Excel Course with AI Integration hands that work to Power Query inside SalesFusion, one of its industry-standard projects; the query lessons on this page follow an underwriting month: cleaning, rule columns, checks, merges, appends, folders and unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Join a loss run to the policy listing by merging the two queries on the policy number, so every claim carries its premium, class and broker, and a claim with no policy shows up empty.
- Stack a folder of monthly bordereaux with one query, so next month's file joins when you refresh and each row still shows which coverholder's file holds it.
- Give two coverholders' files the same column headers inside their queries, then append them into one table.
- Turn an exposure sheet with a column per peril or per month into rows of name and figure with Unpivot Other Columns.
- Prove a bordereau before it is used, with totals and row counts by month and region from a Group By query, largest first.
- Add band, ratio and return-premium columns as query steps, so every month's bordereau is labelled the same way.
- Reuse a finished query for the next underwriting year by duplicating it and pointing the copy at the new file.
- Send just the final table to a sheet and hold the working queries as connections, so several reports can draw on one cleaning.
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 messy sales CSVs, it gives an underwriter every Power Query move a bordereau needs: types fixed and placeholders cleared, codes matched to names by merge, two years stacked, a folder of files combined with each row's source named, and a wide grid folded into rows.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Made for order-level sales, its PivotTables are where a cleaned bordereau goes next: premium and claims by class and by month with dates grouped, a slicer per broker, and Refresh All bringing every PivotTable up to date at once (Lesson 65).
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 17 of them, 1 h 36 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 153 SalesFusion Power Query project
SalesFusion's first lesson, Lesson 153, is the place to begin for anyone who already keeps bordereaux in tables and summarises them with PivotTables. Those still learning tables take Lesson 19 first, and anyone new to Excel starts the course at Lesson 1. If the Power Query Editor is already familiar, skip ahead to the folder query in Lesson 166. Windows enters only after this path: the Power Pivot lessons, Lesson 169 and Lesson 170, need Excel for Windows.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The pipeline idea and the first clean-up: messy CSV files opened in the Power Query Editor through Get Data and Transform Data, unwanted columns dropped and headers renamed, codes trimmed and set in capitals, money symbols and NA placeholders stripped out, each column typed as a number, a date or text, and date fields added for reports. The files hold sales; a coverholder's CSV goes through identical steps.
- 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
- 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
- 155 Import a CSV with Power Query Get data from text and transform data 2 min
- 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
- 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
- 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 Business rules as query columns, the natural home for underwriting bands and flags: a calculation, a ratio guarded against empty or zero values, a High or Normal label and a label for negative rows; then a reference query grouped by month and region with its row count, and the choice of loading a query as a connection, a table or into the Data Model.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system Joining and stacking: lookup files merged on their codes, Left Outer as the join kind; a finished pipeline duplicated for another year's file with its merges made again; two years appended; the period files of a whole folder combined with every row's file named; calculated columns added in the sample file; and one master table built and checked for empty values.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
- 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
- 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
- 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
- 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
- 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 Unpivot Other Columns on a wide export with a column for every month: the descriptive columns kept, the rest folded into a name and a value, placeholders cleared, a real date made from the month label and the figures grouped, so a schedule with perils or months across the top becomes rows you can total.
- 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.
Can Power Query put a loss run and the policy listing into one table, so every claim sits beside its premium, and where is that taught?
Yes, with a merge, and The Complete Excel Course with AI Integration from Coding Liquids builds it into its SalesFusion project, industry standard and designed after talking with people from many different industries. In Lesson 163 the sales query is merged with product and region files on their codes through a Left Outer join, which holds on to every sale and brings each product's and region's details across wherever a code matches. Make the loss run the first table and the policy listing the second, join them on the policy number, and each claim gains its premium, class and broker. Lesson 168 then builds the finished table and checks the merged columns for empty values, which is exactly where a claim whose policy is missing from the listing gives itself away. Around that join sits a path of cleaning, checking, stacking and unpivoting: 17 lessons here, 1 hour 36 minutes in all.
When one row of a stacked bordereau looks wrong, can I tell which coverholder's file it came from?
Yes: rows stacked from a folder keep the name of their file, and The Complete Excel Course with AI Integration builds that in Lesson 166. Get Data from a folder combines the files and adds a Source.Name column, so a premium that looks wrong can be traced to the coverholder's file with one filter. The same lesson switches column profiling to the whole data set and opens column distribution, profile and quality, so gaps and errors show column by column before you rely on the table. Cleaning written once in Transform Sample File reaches each file the folder holds, and a file saved there later joins at the next refresh. Files of one layout combine this way; a coverholder with a layout of its own gets a query of its own and joins by append (Lesson 165). Lesson 168 weighs the column's cost: useful while faults are traced, worth removing once the master table settles.
One coverholder heads the column Gross Premium and another Premium Written: will Power Query line them up?
Rename them to one header first, and the append lines them up exactly; The Complete Excel Course with AI Integration teaches both steps. An append matches columns by their headers, which Lesson 165 relies on when it stacks one year of sales under another, so two coverholders' files need the same column names before they are combined. Lesson 156 renames headers inside the query with a double-click and records each rename as a step, so next month's file from that coverholder is renamed the same way without anyone remembering to. Append as New leaves both source queries untouched, so a fault in the combined table can be followed back to its file, and the lesson checks the stack by scrolling the date filter from one year's dates into the next. Coverholders whose layouts already match can share one folder query instead (Lesson 166).
A broker's exposure sheet puts each peril in a column of its own: can Power Query turn that into rows I can total?
Yes: Unpivot Other Columns folds them into rows, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a wide export with a column for every month. Select the columns that describe each row, on your sheet the location reference, the construction and the occupancy, choose Unpivot Other Columns, and every peril column becomes two: the peril's name and its figure, each renamed as the lesson renames its pair. Because the step names the columns to keep rather than the perils, a peril added to next year's sheet comes through without the query being touched. The lesson also clears n/a out of the figures, builds a real date from a month written as text and groups the result. In that long form, a PivotTable or a SUMIFS totals by peril, by location or by both, and no formula needs rewriting when the perils change.
Before I rely on a coverholder's bordereau, can Power Query check its totals and row count against their own summary?
Yes: a Group By query totals the bordereau and counts its rows, and The Complete Excel Course with AI Integration builds exactly that check in Lesson 161. A reference to the cleaned query is grouped by year-month and region, with one column summing the sales and another counting the rows, sorted largest first, with empty months filtered away. Group yours by month and class, or month and broker, and the figures sit ready beside the coverholder's own summary: a total that differs, or a row count that falls short, tells you before anything is rated. The lesson's own warning suits underwriting well: with the biggest totals on top, a figure that looks too good stands out, since a region that seems to outsell everything is usually a typing slip, and null months point to dates the raw file could not read. Being a reference, the check reruns whenever the cleaned query changes.
Can the query band each risk by sum insured and mark return premiums as the bordereau loads?
Yes: custom and conditional columns write those rules into the query, and The Complete Excel Course with AI Integration builds four of them in Lesson 160. A custom column calculates profit from two others; a second divides it by sales but returns nothing where sales are empty or zero, the guard a ratio needs for a class with no earned premium; a conditional column labels each row High or Normal against a threshold; and another labels negative rows as returns. On a bordereau the same moves give a band for sum insured, a ratio column safe from dividing by zero and a flag that marks return premiums, so a refund never passes for new business. Because the rules live in the query, every month's file is labelled identically on refresh, and no two reports can disagree about what counts as large.
Brokers type commission as 15 in one file and as a fraction in another: can the query put both on one scale?
Yes: one custom column does it, and The Complete Excel Course with AI Integration writes exactly that rule. In Lesson 158 some rates in the file were typed as whole numbers, fifteen meaning fifteen per cent, and others as fractions, so a DiscountRate column divides anything above one by a hundred and leaves the rest alone; Lesson 167 applies the same rule across a whole folder of files, whichever way each was typed. Commission and brokerage arrive the same way across brokers, and the identical rule gives one consistent column before any total is taken. The lesson first strips per cent signs and stray hyphens with Replace Values and sets the column to a decimal type, so the arithmetic works on numbers rather than text. A report built on mixed scales looks plausible and totals wrongly; the query stops that at the source.
Next underwriting year's bordereau arrives in the same layout: do I have to build the query again?
Duplicate it and point the copy at the new file; The Complete Excel Course with AI Integration shows the whole move in Lesson 164. The cleaning query is duplicated, the gear icon beside its Source step opens the file browser, and choosing next year's file sends every saved step to the new data. The lesson is precise about what does not travel: the merges with the lookup files are made again on a fresh reference to the new query, because duplicating the cleaning query leaves them behind. It also audits before trusting, since the new file brings empty dates of its own. Lesson 165 then stacks the two years with Append as New. For an underwriter, last year's bordereau query becomes this year's with its trims, types and rule columns intact, and both years sit in one table for comparison.
Can one cleaned bordereau feed my summary, a check query and a referral list without being cleaned three times?
Yes, through reference queries, and The Complete Excel Course with AI Integration builds the pattern into SalesFusion. In Lesson 161 the cleaned query is renamed as a staging query and a reference to it becomes the QA check, and in Lesson 163 another reference becomes the final table that the lookups are merged into. A reference stays wired to its source, so a fix made once in the staging query reaches the check, the summary and any referral list built from it. Lesson 162 then sets the golden rule for loading: hold the working queries as connections only, and send just the final output to a worksheet or into the Data Model, so the workbook stays lean however many months it holds. For an underwriter that means one cleaning of each bordereau, however many reports draw on it.
A coverholder changes its file layout without warning: what happens to my query, and how is it mended?
The query stops at the step that no longer fits, and The Complete Excel Course with AI Integration shows how to find and mend it. Every step sits in Applied Steps in order, and selecting one previews the data at that stage, which is how Lesson 159 steps back to check its date clean-up; the first step that shows an error is the one the new layout broke. Lesson 167 adds the practical rule that most Power Query errors vanish once the step that caused them is deleted, and it can then be made again to suit the new file. Two habits prevent breaks: keep every source file in the project's folder, as Lesson 153 insists, and reshape wide sheets with Unpivot Other Columns, which survives new columns. When a coverholder reshapes its file, the repair is a single step, not a rebuilt query.
Can the query load only the classes I underwrite and leave the rest of a coverholder's file behind?
Yes: a filter inside the query keeps only the rows you want, every month, without touching the coverholder's file. The Complete Excel Course with AI Integration uses the editor's filter drop-down to remove rows in Lesson 161, where months with no readable date are unticked before grouping, and again in Lesson 164, where the new year's empty dates are dropped; the same drop-down, set to your classes or your lines of business, leaves the rest of the bordereau behind. Lesson 156 adds the column version: remove what you never use, and early, because every later step then has less to carry. Both choices are recorded in Applied Steps and replayed on next month's file, and the source stays exactly as the coverholder sent it, ready for anyone who needs the whole thing.
How soon could next month's bordereaux be a refresh instead of an afternoon of copying?
The first part of that arrives early in the path, and the whole of it takes 1 hour 36 minutes. The Complete Excel Course with AI Integration lets you trade one manual job at a time: after the clean-up lessons, ending with date fields in Lesson 159, your most repeated bordereau tidy-up runs as a query; after the check in Lesson 161, its totals prove themselves; after the folder query of Lesson 166, a new coverholder file is picked up when you refresh. Each stage pays before the next begins, so the routine shrinks month by month while you learn. Practice CSV files and a complete SalesFusion workbook are supplied to compare against, and on the plan with instructor support the oddities of your coverholders' files go to the instructor and come back answered in writing. The Certificate of Completion follows the last lesson of the course.
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 underwriters
- XLOOKUP and VLOOKUP for underwriters
- PivotTables for underwriters
- Excel charts for underwriters
- Excel dashboards for underwriters
- Conditional formatting for underwriters
- Data cleaning for underwriters
- Data validation for underwriters
- Excel tables for underwriters
- Text functions for underwriters
- Date functions for underwriters
- Dynamic arrays for underwriters
- Power Pivot and DAX for underwriters
- Macros and VBA for underwriters
- Power Automate for underwriters
- Copilot in Excel for underwriters
- ChatGPT for Excel for underwriters
- Claude in Excel for underwriters