The Complete Excel Course with AI Integration

Power Query for tax accountants

Portal downloads and client exports bring the same faults every period: amounts held as text, rates typed two ways, blank lines between transactions, one file per month and summaries with a column per rate. The Complete Excel Course with AI Integration teaches tax accountants to fix each fault once with Power Query and replay the fix at every refresh, on SalesFusion, the course's industry-standard Power Query project, with each download checked before its figures are used.

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:

  • Open a portal download or client export through Get Data and Transform Data, so every later step is recorded and replayed rather than repeated by hand.
  • Put amounts, rates and dates on true data types, bring rates typed two ways onto one scale, and keep money in decimal types that never round a figure away.
  • Flag credit notes and invoices above a threshold as each download loads, with columns built in the query from a formula or a condition.
  • Check a download before trusting it, with column profiling across every row and a Group By of totals and row counts by period.
  • Choose the join kind when one file meets another, set codes in one case first because Power Query treats capitals as different, and check for the blanks a merge lets in.
  • Combine every monthly file saved in one folder into a single table, each row labelled with its source file's name, and keep the workbook light by loading only the finished table.
  • Drop the blank lines and dateless rows of a portal export with filter steps that run again at every refresh.
  • Turn a summary with a column per tax rate into rows of rate and amount with Unpivot Other Columns.

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.

    A sales reporting project in the course, its raw CSV exports carry the faults a portal download does, symbols in amounts, NA entries, loosely typed codes and impossible dates, and each is fixed by a recorded step that runs again at every refresh.

  • Project 05

    SalesPlusPerformance

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

    A PivotTable project in the course, built on order-level sales data, it shows a loaded table summarised by product category and grouped by date: the shape a client's download takes when it is read by rate and by period, every PivotTable refreshed in one go.

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 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

Open SalesFusion at Lesson 153 once tables and a PivotTable are part of your routine: the project starts from its raw files and ends with every month's file combined and checked. Tables or PivotTables still unfamiliar? Work through Lesson 19 and the PivotTable lessons from Lesson 57 before the queries, and a reader meeting Excel for the first time starts the course at Lesson 1. Building queries for your downloads already? Pick up at Lesson 160, where flags, checks, joins and the folder query take over.

17 of 186 lessons · 1 h 36 min

15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 13 min SalesFusion's goal and its raw files, the extract, transform and load routine that saves each step to run again, Get Data's menu of file formats, and a first download opened with Transform Data so that cleaning starts as a query rather than a paste. The files hold sales exports; a portal's CSV opens the same way.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 4 of 21 lessons · 24 min Unneeded columns removed first for speed and the rest renamed, with every step on record; codes trimmed and cleaned, and symbols, commas, NA entries and hyphens replaced; amounts and quantities set to true number types; dates rescued from placeholders, with year and month fields added. Each fault is one a tax download can carry.
  1. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  2. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  3. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  4. 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 Columns written in M or set by a condition that compute and flag as the data loads, among them a null-safe ratio and a label for negative amounts; totals and row counts grouped by region within each month; and the Close and Load options that hold staging queries as connections.
  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 3 of 21 lessons · 14 min Left outer joins that set details from lookup files beside every row, the other join kinds read through, a finished pipeline duplicated for the next year's file with its merges built again on the new query, and both years stacked into a single table whose columns line up by header.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 22 min Monthly exports saved side by side combined by one folder query, each row carrying its source file's name, column profiling run across every row, fiscal year and profit columns added in the sample file's steps, and a final fact table built from merges and appends, then checked for nulls.
  1. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  2. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  3. 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 1 of 21 lessons · 8 min Unpivot Other Columns turning a wide export into a long table, the new columns renamed, text turned into real dates, then Pivot Column and Group By to total it: the reshaping a summary with a column per rate or per period needs.
  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.

How does a tax accountant get from cleaning each portal download by hand to a query that cleans it at every refresh?

By building each fix once as a recorded step, and The Complete Excel Course with AI Integration from Coding Liquids walks you through that build from the very first file; its project, SalesFusion, is industry standard, designed after talking with people from many different industries. Its raw exports carry the faults a portal download brings: text in amount columns, placeholders where dates belong, codes typed loosely. You build every fix as a recorded step (Lesson 156 to Lesson 159), test the result with column profiling and a Group By of totals and row counts (Lesson 166, Lesson 161), and from then on the same steps meet every new file at a refresh. Trust comes from that consistency: a query does to the next download exactly what it did to the last, and lists every step it took. The 17 lessons on this page, 1 hour 36 minutes in all, lead from one messy export to a folder query that takes in each new month by itself.

Our portal exports CSV, and clients send PDFs and other files: what can Power Query read?

A long list, shown on the Get Data menu that The Complete Excel Course with AI Integration opens in Lesson 154: CSV, JSON, XML and PDF are among its file formats, each ready to become a query. The lessons then work the whole method on CSV files, the format most portals and accounting systems export: Lesson 155 brings one in through From Text/CSV and chooses Transform Data, so the file opens in the Power Query Editor as a live connection instead of a one-time paste. Every later lesson builds on that habit, and the same editor, steps and checks apply whatever format a source arrives in. Reading tables out of a PDF has no lesson of its own; once a client's statement sits in the editor, the cleaning, typing and merging taught here apply to it as to any download. The lesson's warning holds for all of them: rubbish in, rubbish out.

A client's file holds tax rates typed as whole numbers in some rows and as fractions in others: can a query put them on one scale?

Yes: one custom column does it, and The Complete Excel Course with AI Integration builds exactly that rule in Lesson 158. The lesson's percentage column arrives in two forms, some entries typed as 15 meaning fifteen per cent and others already written as a fraction, so a custom column in M divides anything above one by a hundred and leaves the rest alone. A rate column typed both ways by a client's staff takes the same rule, and every row lands on one scale before any calculation uses it. The same lesson strips per cent signs and hyphens first, then sets the column to Decimal Number, because Power Query cannot total text: a report built on text columns looks fine and calculates wrong. Lesson 167 applies the identical rule inside a folder query, so every month's file is corrected the same way without a second thought.

Could a query round my tax amounts without telling me?

Decimal Number keeps every fraction of an amount, and The Complete Excel Course with AI Integration shows why that choice matters in Lesson 168: there the profit column is set to Decimal Number because a whole number type would round it silently, with no error and no warning. The same care runs through the course: Lesson 158 moves the money columns from Text to Decimal Number and keeps Whole Number for quantities, since nobody sells half a unit. For a tax download the rule is plain: tax, net and gross amounts are decimals, counts are whole numbers, and the checks that follow every merge and append in Lesson 168 catch what those steps let in. A rounded figure looks entirely normal, which is why the lesson names the risk: totals drift by small amounts nobody can trace until the return refuses to agree with the client's records.

Can each step of a query carry a name a reviewer understands, such as removing hyphens from tax numbers?

Yes: any step can be renamed, and The Complete Excel Course with AI Integration does it in Lesson 156, where the Applied Steps panel already holds the steps Power Query recorded and a right-click renames one. Rename each as you go, Remove hyphens from tax numbers, Fix invoice dates, Flag credit notes, and the panel reads as a plain list of what was done to the download, in order. A reviewer clicks a step and the preview shows the download at that stage, then reads on. The queries get names too: Lesson 161 renames them in Query Settings, a staging query for the cleaned data and a QA query for the check built on it. For a file that supports a return, that list is the method section of the working paper, written as you work instead of afterwards from memory.

Before I trust a client's download, can Power Query show how many of its cells are empty or in error?

Yes, for every column at once, and The Complete Excel Course with AI Integration switches the view on in Lesson 166. Column quality gives each column's share of valid, error and empty cells; Column distribution counts its distinct and unique values; Column profile details the column you select. The lesson widens profiling from the first thousand rows to the whole data set, so the picture covers the entire download rather than a sample. On a client's file the warnings are concrete: a supplier tax number missing on a fifth of the lines, errors in the tax column, or more distinct supplier names than the client has suppliers, which usually means one supplier spelled several ways. Errors then go through Replace Errors (Lesson 157), and a Group By with the largest totals first (Lesson 161) exposes any month whose figure is too good to be true, typically a typing slip.

After a folder query stacks a year of downloads, can I still tell which month's file each row came from?

Yes: the folder query writes each row's source file name into a column of its own, and The Complete Excel Course with AI Integration shows it from the first combine in Lesson 166. Save each download under its period's name and that column becomes the period's label for free, so a figure that looks wrong traces straight back to the file that carried it. Cleaning steps written once in the query's Transform Sample File reach every file the folder holds, including those added next quarter. Lesson 168 then makes a deliberate choice: the source column is handy for debugging, but columns nobody needs weigh on a growing model, so the final table drops it. Keep it while you test a new client's files, and drop it once the figures tie.

Can a query label the credit notes in each download before they reach a total?

Yes: a custom column does it inside the query, and The Complete Excel Course with AI Integration builds exactly that label in Lesson 160. The column reads Return when a row's amount is negative and Sale otherwise; renamed to suit, it is a credit-note flag that every download receives as it loads. The same lesson adds a conditional column marking rows of 500 or more as High and the rest as Normal; set the threshold to your reporting limit and every invoice above it is labelled too. A third column works out a margin while guarding against an empty or zero amount, the null-safe pattern a tax share of each invoice needs. Logic built in the query runs identically at every refresh, so two schedules drawn from the same download never disagree about which rows are flagged. On a client's purchase download, credit notes and large invoices then arrive labelled, ready for a PivotTable or a review list.

Which join kind should a query use when the register meets the portal download?

Left Outer as a rule, and The Complete Excel Course with AI Integration shows why in Lesson 163: the first-named query keeps all of its rows, and the lookup's columns fill in wherever a partner is found, so nothing drops out and each unmatched line stands out with empty cells. Put the register first and the empty rows are invoices the portal does not show; reverse the order and you see the portal lines the client never recorded. Lesson 164 reads through the rest of the Join Kind list, Right Outer, Full Outer, Inner and more, before keeping Left Outer, and Lesson 168 adds the check that belongs after every merge: look for the nulls a join lets in. One Power Query rule matters more here than anywhere: it treats capitals as different, which is why Lesson 157 sets codes in upper case before they are matched.

A year of downloads makes my workbook crawl: does the course show how to keep it light?

Yes, with a rule The Complete Excel Course with AI Integration calls golden in Lesson 162: load only the final, cleaned output into the grid, never every staging step. Close and Load To offers three destinations, a table on a sheet, the Data Model or a connection only, and the lesson keeps its staging and checking queries as connections, ready for later steps without filling sheets. Lesson 156 adds the earlier habit: remove the columns you will never use first, so every later step has less data to work through. Lesson 168 finishes the thought by dropping a column the final table no longer needs and holding the result as a connection for the data model. For a tax accountant with twelve monthly downloads per client, that is the difference between a workbook that opens in seconds and one that freezes mid-review.

A client's sales summary puts each tax rate in its own column: can a query turn the rates into rows?

Yes: Unpivot Other Columns does it, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a wide export with a column for every month. You select the columns that describe each row, unpivot the rest and rename the two new columns; for a client's summary those become Rate and Amount, one row per rate per line. The lesson's quiz names the strength that matters most: the step names no column it turns into rows, so a new rate column added to next year's summary is taken in without touching the query. The lesson then turns text into real dates, uses Pivot Column to set two measures side by side again and totals the result with Group By. In the long shape SUMIFS and PivotTables total each rate directly, and the rates line up with the rate column of your own register.

A portal export has blank lines and rows with no date between the transactions: can a query drop them every month?

Yes, with a filter step that stays in the query, and The Complete Excel Course with AI Integration applies it several times. The null that Power Query shows for an empty cell can be unticked in any column's filter list: Lesson 164 unticks it in the date column of the next year's file, and Lesson 168 does the same in the amount and year columns of the final table. The faults upstream are handled too: Lesson 159 replaces unreadable dates with null so they can be found, and Lesson 161 shows that the months coming out null in a Group By trace back to those unreadable dates in the raw file. Because the filter is a step, next month's blank lines vanish at the refresh without anyone remembering to delete them. Compare the row count before and after the step, so that only empty rows leave.

One month's download arrives with a column renamed: will the query notice?

Yes, quickly, because Power Query matches columns by their headers. When two queries are appended, as in Lesson 165, a header spelled differently in one of them arrives as a column of its own, empty for every row of the other, and the Column quality view of Lesson 166 shows the sudden blanks at a glance. In a folder query, a step that names the old header finds nothing to act on in the odd file, so the refresh stops with an error naming the missing column instead of handing you a quietly wrong total. Correct the header in that month's file, refresh, and the stack is whole again. Portals do change their layouts, so in filing season a look at the column profile belongs in every refresh, and The Complete Excel Course with AI Integration has given you both the profile and the habit.

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.