Skip to the page

Excel and BI · mid

Pivot tables, Power Query and what-if tools

Reports that repeat every week or month should be automated with Tables, Power Query and one Refresh All. Know the what-if tools and the newer GROUPBY and PIVOTBY functions.

The notes

What you must know

  • A pivot table with a fixed source range ignores rows pasted below it. Turn the data into an Excel Table (Ctrl+T) so the source grows, then refresh.
  • Grouping dates by month fails when any cell in the date field is text or blank. Find them with a filter or ISNUMBER and fix the source. Also check a total row pasted inside the data and filters left on.
  • Distinct count in a pivot: add the data to the Data Model when creating the pivot, or use a Power Pivot measure.
  • Combine many files: Get Data > From Folder > Combine and Transform. The cleaning steps run on every file. A small mapping table (old name to standard name) handles different column names. Unpivot Other Columns turns month columns into rows.
  • Set types using the English (India) locale so 03/11/2026 is 3 November and 1,20,000 is a number. Use rename steps that ignore missing fields (MissingField.Ignore). Check row counts and totals per branch.
  • Excel sheets stop at 1,048,576 rows. Near that, or with many editors, the data belongs in a database with a BI tool on top.
  • Goal Seek changes one input to reach a target for one formula. A Data Table shows results over a grid of two inputs. Scenario Manager stores named sets of inputs. Solver finds the best value under constraints. Keep inputs in their own cells.
  • GROUPBY and PIVOTBY are Microsoft 365 functions (since late 2024). They update without Refresh and take filter, sort and LAMBDA arguments. Older versions show #NAME?. Pivot tables work in every version, with slicers and drill-down.
  • Python in Excel runs in Microsoft's cloud, so it needs internet and client data leaves the machine. Check every AI-written result against a known total.

The red pen

Common traps: mistake → fix

  • Mistake: Rebuild the pivot every week

    Fix: use a Table and Refresh All.

  • Mistake: Pivot tables are old, never use them

    Fix: they are interactive and work everywhere; choose by need.

  • Mistake: VBA copy and paste is the way to combine files

    Fix: Power Query keeps the steps and runs on each file.

Easy to hard

Questions interviewers ask, easy to hard

  1. Every Monday new rows are pasted under the data and the pivot misses them. Why?
  2. Thirty branches send different files each month. How do you automate the combine?
  3. Which what-if tool would you use to find the price for a profit target?
  4. GROUPBY or a pivot table: when do you choose each?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview