Dataracity
All videos
Power BI

From AI-Built Dashboard to Refreshable Data Model: Power Query + Claude Code

AI can build a dashboard in minutes, but will it survive next month's data? See how we rebuild it with Power Query and a proper data model that refreshes.

November 27, 2026Video

AI tools can now build a polished Excel dashboard from a few prompts. KPI cards, charts, slicers, even a Top 5 sales reps table. The problem is what sits underneath. In most cases it is hundreds of formulas pointing at fixed ranges. Add next month's data and the numbers quietly go wrong.

For a finance team, a dashboard that cannot refresh is not a reporting asset. It is a monthly rebuild job, and a risk to the numbers your leadership relies on.

What the video covers

In this tutorial, we start with a quick prototype built by the Claude add-in for Excel, then look at what it actually created. Next, we use Claude Code to migrate the whole workbook onto a proper foundation:

• Power Query for every transformation, with clearly named, auditable steps

• A Power Pivot data model in place of formula chains

• Pivot tables, charts and slicers with no hard-coded Excel formulas

Then comes the real test. We move the raw data into a separate source file, add another year of data and hit refresh. The dashboard updates without a single formula being touched.

Why this matters beyond Excel

The M language used here is the same Power Query language that powers Power BI and Microsoft Fabric Dataflows Gen2. The habits in this video (separate the source, transform in named steps, model before you visualize) are the same ones we use in enterprise Power BI and Fabric implementations. A dashboard built this way can grow into a governed semantic model instead of being thrown away.

Key takeaways

1. AI is excellent for fast prototypes, but check what it built before anyone relies on it.

2. Formula-heavy dashboards break on new data, partial periods and changing ranges.

3. Power Query gives you an audit trail: every step is visible and explainable.

4. Building on a data model is the first step from spreadsheet reporting to a scalable BI platform.

FAQ

Can Claude Code write Power Query (M) for me? Yes. In the video, Claude Code builds the Power Query steps and data model directly in the workbook. You should still review each step, which is easy because the steps are named.

Why not just let AI build the dashboard with formulas? Formulas tied to fixed ranges break when data grows. A Power Query and data model approach refreshes cleanly and can be audited.

Does this approach carry over to Power BI and Fabric? Yes. The M language is shared across Excel, Power BI and Fabric Dataflows Gen2.

Call to action

Is your finance team still rebuilding Excel reports every month? Dataracity helps mid-sized organizations move from fragile spreadsheets to refreshable, governed Power BI and Microsoft Fabric reporting. Book a meeting to talk through your reporting process.

Ready to build on this?

Turn strategy into a working data environment.

Book a free call to talk through where your data environment stands today.