dataSights

Transform once: why SQL views & "keep reports dumb"

Last updated

All the domain and business logic belongs in the data layer beneath your reporting tools. Raw data and tables at the bottom, your logic in the middle, and then one nice table to pull in and visualise. That is when reporting becomes scalable and maintainable.

We want reporting tools to be as dumb as possible: just visualise and present.

What a view is

A SQL view is a saved transformation. It joins your raw tables, applies your mappings, filters to what matters, and presents the result as one clean table. The view runs in your database, so the work is done before any reporting tool gets involved.

Most platforms will not hand you their reports; they hand you raw data and wish you luck. The mechanism that gets you from "here are forty raw tables" to "here is the one table my report needs" is a bit of SQL joining that data. Reporting tools will let you join lots of tables themselves, but the complexity factor goes up multitudes.

The wrong way

The wrong way is familiar: Power BI pulls in all the raw data, does the modelling, does the DAX, and now every piece of that logic lives inside one Power BI file. The report works, but nothing about it can be reused. Your Excel workbook cannot read a DAX measure. Claude cannot query a semantic model. The next report starts from zero.

This is not a knock on Power BI. It is about where the logic lives. Shift the modelling up to the view layer and Power BI becomes far simpler, because all it does is pull in a couple of finished tables and present them, which is the job it is actually good at.

One pull serves every tool

Whatever you pull into Excel can then be used in Power BI, can then be used in Claude. That is the payoff of transforming once: the same mapped, eliminated, FX-ready views feed every tool, so the reporting layer focuses on reporting instead of on getting the data. It holds irrespective of the tool: Excel, Power BI, Google Looker, Tableau, Claude or ChatGPT. And it matters most in AI's case: you really want AI working on that final transformed layer, not puzzling over raw tables.

There is a governance payoff too: a single place of ownership. When the logic lives in the database, it is not stranded in one analyst's report file, and it does not leave with them.

Already built it in Power Query?

There is nothing wrong with the Excel-side approach; it is how most customers start. When you are ready, the migration is not a rebuild: copy your Power Query steps into Claude and ask it to move that logic up to a SQL view. Claude creates the view in your database through AI Connect, and from that moment the same logic is reusable from Power BI, Excel, or anything else, and your workbook refresh gets faster because the work now happens in the database.

Where this shows up in practice

dataSights

Try dataSights free

See how dataSights automates your Xero consolidation and reporting. Start your 14-day free trial, no credit card required.

Start for free