Move DAX / modelling from Power BI → SQL
You have a Power BI report that works. Twenty tables in the model, relationships everywhere, a library of DAX measures that took months to get right. It also takes a specialist to change, refreshes slowly, and none of its logic can be used anywhere else. This page is how to fix that without rebuilding the report.
Why move it
Every measure and relationship lives inside one PBIX file. Excel, Claude, Google Looker and your next report cannot reach any of it
Changes need whoever built it, and when they leave, the logic leaves with them
Big models refresh slowly and break when a source table changes shape
The same calculation is probably being done differently in a spreadsheet somewhere
The move
The modelling goes up a layer, into your database as SQL views, and Power BI thins out to a couple of finished tables. Claude does the translation:
In Power BI Desktop, open a measure or a calculated table and copy the DAX. Note which tables and relationships it depends on
Paste it into Claude with: "Move this calculation into a SQL view in our database, over the consolidated views"
Claude writes the view, saves it through AI Connect, and shows you the output
Verify against the current report for a period you trust. Ask Claude to reconcile any difference
In Power BI, replace the raw tables the measure depended on with the new view. The measure becomes a plain column or a simple sum
Work from the measures the business relies on most, or the ones that are slowest. Mapping and lookup tables that live inside the model move to user data tables in the database at the same time, where they can be maintained without opening Power BI.
What the report looks like afterwards
A handful of tables, each a view that already contains the logic
Almost no relationships to maintain
DAX reduced to sums, counts and the odd ratio
Fast to refresh, and anyone comfortable in Power BI can change the visuals without fear
The same views now serve Excel, Claude and any other tool, which is the real payoff: the logic you spent months on stops being trapped in one file.
The honest limit
Some things belong in Power BI: visual-level calculations, what-if parameters, formatting measures. Leave those where they are. The test is simple: if the logic would be useful anywhere other than this report, it belongs in the database.