The refresh failed again on Monday: five Excel habits to ban
Updated 2026-11-27 · 3 min read
Symptom
A renamed sheet or a merged cell breaks the whole report.
Cause
Queries depend on names and layouts people change.
Fix
Named Excel tables and a locked template.
Merged cells and titles above the table. Power Query reads the first row as headers. Ask for a plain table starting in A1, or better, an Excel Table (Ctrl+T) with a fixed name.
Subtotal rows inside the data. They are summed again in Power BI. Remove them at the source, or filter rows whose label contains “Total”.
Renamed sheets or columns. The query refers to names; a renamed sheet fails the refresh. Load the Excel Table by its name instead of the sheet.
Numbers stored as text. “1 234 €” is text. Ask for numeric cells with formatting, not typed symbols.
One file per person with different layouts. Share a template with locked headers.
// Load an Excel Table by name, not a sheet
= Excel.Workbook ( File.Contents ( "C:\Data\Sales.xlsx" ), true ){[Item = "tblSales", Kind = "Table"]}[Data]