Excel Power Query → SQL for scalable reporting
Plenty of finance teams have a working Excel model with a lot of Power Query behind it: dozens of queries, merges, custom columns, all built over years and all quietly fragile. There is nothing wrong with that; it is how most people start. This page is for when it starts to hurt.
When it is time
Refresh takes long enough that people plan around it (a slow refresh has blocked more than one year-end close)
Nobody quite remembers what the fifteenth query does, and touching it is a risk
A second workbook or a Power BI report needs the same logic, and the only way to reuse it is to copy it
Excel is hitting its row limits because the shaping happens after the pull rather than before
The move
You do not rebuild anything. You move the logic up one layer, from Power Query into your database, and Claude does the translating:
Open the Advanced Editor on a Power Query and copy the steps
Paste them into Claude with: "Move this logic into a SQL view in our database"
Claude writes the view, saves it through AI Connect, and shows you the result
Verify: compare the view's output with the query's output for a period you trust. Ask Claude to reconcile any difference
Repoint the workbook: Data, Recent Sources, pick the new view, and the old query becomes a plain table load
Repeat per query, starting with the slowest or the most-reused. Two or three sessions clears most models.
What changes
Refresh is fast, because the database does the joining before Excel sees a row
The logic is in one place, visible, and reusable from Power BI, Claude, Google Looker or a web app without copying
The workbook is simpler: raw tabs loading finished tables, report tabs on formulas over them
The next person can read a SQL view; almost nobody can read someone else's forty Power Queries
A note on the row limit
If a query was there mainly to filter a huge pull down to size, the view does that filtering server-side, so what lands in Excel is only what the report needs.