Taking over an existing Power BI project isn't just about understanding how it works. It's about understanding why it works that way. Making changes without that context can introduce problems elsewhere.

Using a fictional retailer's Power BI project and three development challenges, I want to explore how much responsibility I can delegate to Claude Code, when I need to step in, and whether I can confidently approve its work without doing it again. So, what does the working environment look like?

In this blog

  • Giving Claude Code more than just project access
  • A slow matrix. Can AI fix it without breaking the numbers?
  • One target changes. What else could break?
  • Can AI catch the mistakes we forget to check?
  • How much development work would I actually hand over?

Connecting Claude Code to the Power BI project

I'm starting with a development copy of the retailer's PBIP project, tracked in Git. I want Claude Code to work against the existing implementation rather than build something in isolation. Every change needs to be traceable, reviewable, and reversible.

For these assignments, I'm bringing together several components, each serving a different purpose:

THE DEVELOPMENT TOOLKIT
PROJECT FOUNDATION PBIP

Access to the existing semantic model and report definitions.

Power BI Authoring Plugin

Power BI-specific guidance and conventions for working with project files.

Power BI Modeling MCP

Model inspection, dependency investigation, DAX execution, and targeted model changes.

Report-authoring tools and Desktop Bridge

Working with report definitions and interacting with the Power BI Desktop environment.

Git and GitHub Actions

Change tracking, review, and automated execution of recurring development checks.

Power BI project architecture A shared Git-tracked PBIP project with two execution paths: interactive local development for assignments one and two, and automated GitHub Actions execution for assignment three. PROJECT ARCHITECTURE PBIP Project Git-tracked baseline 01 / INTERACTIVE DEVELOPMENT Local environment Claude Code + connected tools SEPARATE BRANCHES A1Slow matrix A2Revised target Independent validation Power BI Desktop · DAX Studio 02 / AUTOMATED EXECUTION GitHub Actions Claude Code + repository context SEPARATE BRANCH A3Automated review Reusable review instructions No Desktop session required PR review findings
One project baseline · Two execution paths · Three independent assignments

The first two assignments run interactively against my local development environment. The third runs automatically through GitHub Actions, using repository contents and reusable review instructions without requiring an open Power BI Desktop session.

Each assignment starts from a separate branch of the same baseline project, ensuring that changes introduced during one experiment don't influence the others. I'm also keeping Power BI Desktop and DAX Studio available for independent validation and detailed performance diagnostics.

With the environment established, let's start with a problem that has gradually developed in our retailer's profitability report.

Finding and fixing the slow matrix

The retailer's regional profitability report includes a matrix that allows sales managers to expand individual regions and review customer-level performance. While regional reporting works reasonably well, expanding larger regions or changing reporting periods at customer level introduces a noticeable delay.

The matrix has evolved over time, incorporating customer rankings, previous-year comparisons, and profitability growth. None of these requirements can simply be removed to improve performance. I've designed the sample model to reproduce this problem.

Retail Profitability — Power BI Desktop
Regional profitability Customer performance by region
2026
Region / Customer Net Sales Profit Profit LY Growth % Rank
−North €4,820,000 €720,000 €665,000 8.3%
Customer A €310,000 €54,000 €48,000 12.5% 1
Customer B €285,000 €48,000 €45,000 6.7% 2
Customer C €260,000 €48,000 €42,000 14.3% 2
Customer D €240,000 €39,000 €41,000 −4.9% 3
Customer E €120,000 €0 €8,000 −100% 4
Customer F €95,000 −€5,000 €2,000 −350% 5
… … … … … …
+South €3,950,000 €610,000 €580,000 5.2%
+West €3,420,000 €490,000 €470,000 4.3%
Regional profitability Illustrative mockup
Profitability matrix expanded to customer level, with initial Performance Analyzer measurements.

Experiment note: The three assignments use a simulated Power BI development scenario. The investigation findings, performance measurements and validation outcomes are illustrative rather than results from actual executions.

Establishing the context

Before handing over the assignment, I've established the model characteristics and business rules that any optimisation must preserve.

Model context & business rules
5M Sales transactions
25K Customers
8 Regions
Model context
Storage mode Import
Model architecture Retail star schema
Customer identity Unique customer names
Matrix hierarchy Region → Customer
Ranking logic
Ranking scope Within each region and selected customer population
Ranking method Dense ranking, descending by profit
Tied profits Customers receive the same rank
Included
Negative and zero profits
Excluded
Customers without sales
Customers with undefined profit

The assignment

I have a few suspects, but I deliberately leave them out of the assignment.

Claude Code Assignment 01
Interactive
Prompt
Investigate why the profitability matrix becomes slow when expanded to customer level. Establish a reproducible performance baseline, isolate the bottleneck, and support your findings with execution evidence. Recommend an optimisation that preserves the existing reporting requirements. Don't modify the model until I've reviewed your findings.
Execution
Interactive investigation
Provided
PBIP project, original visual query, reproduction steps, business rules
Tools
Power BI Modeling MCP, DAX Studio, Git, Power BI Desktop

Following the investigation

I provide Claude Code with the visual query captured through Performance Analyzer, giving it a reproducible starting point.

DAX QUERY Profitability Matrix
EVALUATE
SUMMARIZECOLUMNS(
    Customer[Region],
    Customer[Customer Name],
    TREATAS({2026}, 'Date'[Year]),
    TREATAS({"North"}, Customer[Region]),
    "Net Sales", [Net Sales],
    "Profit", [Profit],
    "Profit LY", [Profit LY],
    "Profit Growth %", [Profit Growth %],
    "Customer Rank", [Customer Profit Rank]
)

Simplified representation of the visual query.

DAX Studio Profitability Matrix
Results Server Timings Query Plan
Total duration
8,420 ms
Formula Engine
7,680 ms
Storage Engine
740 ms
Formula Engine
Storage Engine · 8.8%
Returned rows 3,184
Visual display 380 ms
Cold cache
5 executions
Median duration
Illustrative baseline execution profile.

With approximately 91% of query execution time attributed to the Formula Engine, the investigation focuses on calculation overhead. Individual calculations are isolated while preserving comparable filter context and customer populations.

Diagnostic comparison Duration (ms)
Original query
8,420
Without profitability growth
8,110
Without previous-year calculations
7,860
Without customer ranking
1,240
Each diagnostic variation is compared independently against the original query.

Each diagnostic variation is compared independently against the original query.

The finding: The diagnostic results point towards customer profitability ranking as the primary bottleneck, rather than the volume of sales transactions.

From diagnosis to implementation

The existing ranking measure repeatedly evaluates customer eligibility and profitability across the selected customer population.

Existing implementation

DAX Customer Profit Rank
Customer Profit Rank =
VAR CurrentProfit =
    [Profit]

VAR EligibleCustomers =
    FILTER(
        ALLSELECTED(Customer[Customer Name]),
        CALCULATE(COUNTROWS('Fact Sales')) > 0
            && NOT ISBLANK([Profit])
    )

RETURN
    IF(
        ISINSCOPE(Customer[Customer Name])
            && HASONEVALUE(Customer[Region])
            && COUNTROWS('Fact Sales') > 0
            && NOT ISBLANK(CurrentProfit),
        RANKX(
            EligibleCustomers,
            [Profit],
            CurrentProfit,
            DESC,
            DENSE
        )
    )

Before approving the proposed change, I establish a minimum performance improvement target of 40%, without compromising business behaviour.

Proposed implementation

DAX Customer Profit Rank
Customer Profit Rank =
VAR EligibleCustomers =
    FILTER(
        ALLSELECTED(
            Customer[Region],
            Customer[Customer Name]
        ),
        CALCULATE(COUNTROWS('Fact Sales')) > 0
            && NOT ISBLANK([Profit])
    )

RETURN
    IF(
        ISINSCOPE(Customer[Customer Name])
            && HASONEVALUE(Customer[Region])
            && COUNTROWS('Fact Sales') > 0
            && NOT ISBLANK([Profit]),
        RANK(
            DENSE,
            EligibleCustomers,
            ORDERBY([Profit], DESC),
            DEFAULT,
            PARTITIONBY(Customer[Region]),
            MATCHBY(Customer[Customer Name])
        )
    )

The important change isn't simply replacing RANKX with RANK. It's expressing the ranking operation through an explicit population, ordering, regional partition, and customer identity.

Testing beyond the obvious

A faster query is only useful if the calculation continues to behave as expected. I've defined a controlled ranking scenario independently of the proposed implementation.

Controlled ranking scenario
Input data Expected results
Customer Profit Full region rank Selected customers rank
Customer A €54,000 1 Not selected
Customer B €48,000 2 1
Customer C €48,000 2 1
Customer D €39,000 3 2
Customer E €0 4 3
Customer F −€5,000 5 4
Customer G No sales Not ranked Not ranked
The selected customer population excludes Customer A.

Comparing the original and revised calculations tests equivalence. Comparing them against independently defined results tests whether they meet the business requirements.

Regression validation
Regression scenario Result Regression scenario Result
Full region ranking Pass Customers with undefined profit Pass
Selected customers Pass Multiple regions Pass
Tied profits Pass Regional and grand totals Pass
Zero and negative profits Pass Product filters Pass
Customers without sales Pass Reporting period changes Pass
Validation summary
10/10 passed 0 mismatches
Illustrative regression validation results.

Can I sign off?

The final comparison uses the original visual query under comparable execution conditions.

Performance comparison
DAX query duration
8,420 2,680 ms
68.2% Reduction
Original
Optimised
Formula Engine Storage Engine
Performance metric Original Optimised Reduction
Formula Engine 7,680 ms 1,980 ms 74.2%
Storage Engine 740 ms 700 ms 5.4%
Visual display duration 380 ms 370 ms 2.6%
Returned customer rows 3,184 3,184 Unchanged
Illustrative median durations across five cold-cache executions.
Acceptance criteria
5/5 passed
Minimum 40% performance improvement 68.2%
Calculation regression Zero mismatches
Business behaviour 10 of 10 scenarios
Implementation scope One measure modified
Review effort No repeated investigation
Illustrative acceptance assessment.

My assessment

What I found particularly useful was the investigation sequence rather than the rewritten DAX. I provided the original query and assisted with capturing execution traces, but the diagnostic comparisons and regression checks gave me a clear path to reviewing the change.

I'd still run an independent validation query before approving it. That's a reasonable part of my review. Having to reconstruct the entire performance investigation isn't. Can Claude Code provide the same level of confidence when a change spans both the semantic model and the report?

Changing the target without rewriting history

Midway through 2026, the retailer revises its annual sales plan. Regional sales managers need to track performance against the revised targets, while monthly performance reviews must continue to reflect the targets originally agreed upon.

The existing target measure is already used in KPI cards, variance calculations, conditional formatting, reference lines, and report tooltips. The challenge isn't introducing a revised target. It's ensuring that the change doesn't unintentionally affect historical reporting.

Power BI Desktop Retail Sales Performance
Before implementation Existing target logic
Current Sales Performance
June 2026 North
Net Sales €1.10M
Sales Target €1.00M
Variance +10.0%
On Target
Monthly sales vs target (€M)
0.0 0.4 0.8 1.2 0.82 0.94 0.91 1.04 0.98 1.10 Jan Feb Mar Apr May Jun
Actual sales Original target
Uses original target
Archived Sales Performance
June 2026 North
Net Sales €1.10M
Sales Target €1.00M
Variance +10.0%
On Target
Monthly sales vs target (€M)
0.0 0.4 0.8 1.2 0.82 0.94 0.91 1.04 0.98 1.10 Jan Feb Mar Apr May Jun
Actual sales Original target
Uses original target
Shared semantic model
Sales Target = Original Target
Sales Variance % Sales Target Status
Illustrative representation of the existing reporting implementation.

Establishing the context

I've established the following assumptions about how the retailer maintains its sales targets and reporting history.

Business & Model Context
Target granularity
Month and sales region
Target availability
Original and revised targets available in the source data
Target coverage
Both versions cover the applicable reporting period
Filter context
Shared date and region dimensions
Semantic model
Shared by current and archived reporting pages
Actual sales
Same calculation across both reporting experiences
Investigation scope
Model and report dependencies within the sample PBIP project
Current reporting
Uses the revised annual sales plan
Historical reporting
Retains the original target definition

The requirement is to preserve the original target definition, not to create a frozen snapshot of historical sales.

The assignment

Claude Code Assignment 02
Interactive
Prompt
Update the current sales performance pages to reflect the revised sales plan without changing the target definition used on archived pages. Investigate model and report dependencies before implementing the change. Provide a mapping between affected dependencies, implemented changes, and validation evidence.
Execution Interactive implementation with regression checks
Provided PBIP project, revised target data, business requirements, reference validation month
Tools Power BI Modeling MCP, report-authoring tools, PBIR, Desktop Bridge, Git, Power BI Desktop

Following the less obvious dependencies

The existing implementation contains a chain of dependent calculations.

Existing target

DAX Sales Target
Sales Target =
SUM('Fact Target'[Original Target])

Existing variance

DAX Sales Variance %
Sales Variance % =
DIVIDE(
    [Net Sales] - [Sales Target],
    [Sales Target]
)

Existing performance classification

DAX Sales Target Status
Sales Target Status =
SWITCH(
    TRUE(),
    ISBLANK([Sales Variance %]), BLANK(),
    [Sales Variance %] >= 0, "On Target",
    [Sales Variance %] >= -0.05, "At Risk",
    "Below Target"
)

Changing the base measure would affect every dependent calculation. However, model dependencies only reveal part of the problem. Both reporting experiences also use a shared tooltip page, which I've deliberately left out of the assignment.

Dependency Investigation 13 references
Sales Target
Original target definition
TMDL · Model 02
Sales Variance %
Sales Target Status
PBIR · Report 11
KPI card bindings 4
Variance visual bindings 2
Conditional formatting rules 2
Chart reference lines 2
Shared tooltip page
1
Current reporting Archived reporting
Illustrative dependency investigation across TMDL and PBIR definitions.

The finding: Updating the existing target measure would affect both reporting experiences. The shared tooltip introduces an additional dependency that cannot be resolved by changing the current page's visual bindings alone.

Separating the two reporting experiences

Claude Code's proposed implementation retains the existing measures for archived reporting and introduces an explicit set of revised calculations for current reporting.

Revised target

DAX Sales Target Revised
Sales Target Revised =
SUM('Fact Target'[Revised Target])

Revised variance

DAX Sales Variance Revised %
Sales Variance Revised % =
DIVIDE(
    [Net Sales] - [Sales Target Revised],
    [Sales Target Revised]
)

Revised performance classification

DAX Sales Target Status Revised
Sales Target Status Revised =
SWITCH(
    TRUE(),
    ISBLANK([Sales Variance Revised %]), BLANK(),
    [Sales Variance Revised %] >= 0, "On Target",
    [Sales Variance Revised %] >= -0.05, "At Risk",
    "Below Target"
)

For this limited change, I prefer explicit measures over introducing a broader target-version architecture. The current pages are rebound to the revised calculations, while archived pages retain their existing references.

Report Implementation
Current reporting
Adopt revised definition
Archived reporting
Preserve original definition
Target cards Revised measure
Variance visuals Revised variance
Conditional formatting Revised classification
Reference lines Revised target
All four bindings unchanged
Target cards Variance visuals Conditional formatting Reference lines
Tooltip separation
Dedicated revised tooltip
Original tooltip retained
Illustrative mapping of report-level implementation changes.

Catching a partially correct implementation

I've selected a validation month where the revised target changes both the variance and performance classification.

Power BI Desktop Retail Sales Performance
Report-level validation June 2026 · North
First implementation
KPI cards correct · Tooltip incorrect
Current Sales Performance
Net Sales €1.10M
Sales Target €1.20M
Variance −8.3%
Below Target
Monthly sales vs target (€M) 0.0 0.4 0.8 1.2 Jan Feb Mar Apr May Jun June 2026 Net Sales €1,100,000 Sales Target €1,000,000 Variance +10.0% On Target Net Sales Sales Target
Tooltip contradicts headline KPIs Original shared tooltip
After correction
KPI cards correct · Tooltip corrected
Current Sales Performance
Net Sales €1.10M
Sales Target €1.20M
Variance −8.3%
Below Target
Monthly sales vs target (€M) 0.0 0.4 0.8 1.2 Jan Feb Mar Apr May Jun June 2026 Net Sales €1,100,000 Sales Target €1,200,000 Variance −8.3% Below Target Net Sales Sales Target
Tooltip consistent with headline KPIs Dedicated revised tooltip
Illustrative report-level validation before and after the tooltip correction.

The initial implementation produces the correct headline KPIs, but the current page's tooltip still displays the original target and variance. The report-level validation exposes the inconsistency.

Regression Validation
Validation check First implementation After correction
Current target card Pass Pass
Current variance Pass Pass
Conditional formatting Pass Pass
Chart reference line Pass Pass
Current page tooltip Fail Pass
Archived reporting Pass Pass
Validation summary 5/6 passed 6/6 passed
Illustrative regression validation for the selected month-region combination.

Claude Code identifies the shared tooltip binding during validation and introduces a dedicated tooltip for current reporting, preserving the original for archived pages.

Can I sign off?

Implementation Sign-off
Dependency coverage
13/13 references
All references accounted for
Regression validation
24/24 checks passed
6 checks × 4 month-region combinations
Current reporting
Revised target consistently applied
Historical reporting
Original target behaviour preserved
Implementation scope
3 new measures, 1 new tooltip page, targeted report changes
Review effort
No repeated dependency investigation
Illustrative acceptance assessment across the complete regression suite.

The simulated regression suite covers six validation checks across four month-region combinations.

My assessment

What mattered here wasn't that Claude Code got every change right on its first attempt. It was that the validation exposed an incomplete implementation before approval. The dependency mapping gave me a structured way to review both reporting experiences without manually inspecting every visual or reconstructing the investigation.

But what if Claude Code could identify a maintenance issue before I even asked it to investigate?

Automating the checks developers tend to forget

The retailer has started accounting for customer returns in its Net Sales calculation. The developer updates the measure, but its description still explains the previous business definition.

The calculation may be correct, and the report may pass validation, yet the semantic model now contains misleading documentation. Rather than adding another item to the developer's review checklist, I want to give Claude Code a recurring development responsibility.

Establishing the context

Review Configuration
Assignment 03
Documentation Business-critical measures have descriptions
Business definitions The approved KPI glossary already reflects the revised Net Sales definition
Development workflow PBIP repository hosted in GitHub
Review scope Changes to measure definitions and descriptions
Review policy AI findings are advisory; developers retain approval responsibility

Setting up the automation

Unlike the previous assignments, I don't want to initiate this investigation manually. The review should become part of the existing pull request workflow.

Claude Code Assignment 03
Automated
Trigger Relevant pull request opened, reopened, or updated
Execution mode Automated, non-interactive review
Provided PBIP repository, Git diff, measure descriptions, KPI glossary
Tools Claude Code GitHub Actions, TMDL, reusable review instructions
Output Actionable pull request review findings

I'd maintain the review instructions alongside the project, separating them from the workflow configuration.

Retail Analytics
Repository structure
Retail.SemanticModel/
Retail.Report/
docs/
kpi-glossary.md Business definitions
.claude/
reviews/
semantic-model-review.md Review instructions
.github/
workflows/
semantic-model-review.yml Workflow configuration
Illustrative repository structure for the automated semantic model review.

The workflow explicitly loads the review instructions, retrieves the relevant repository context, and publishes its findings against the pull request.

Automated Review Workflow
GitHub Actions
Pull request opened, reopened, or updated Trigger Detect relevant semantic model changes Retrieve Read Git diff, existing metadata, and KPI glossary Investigate Evaluate changes in business meaning Report Publish evidence and proposed corrections Revalidate Review subsequent commits and update findings Subsequent PR commits Advisory review · Developer retains approval responsibility
Illustrative end-to-end automated semantic model review workflow.

The instructions are defined once and reused across subsequent pull requests.

Reusable Review Instructions
.claude/reviews/semantic-model-review.md
Review changed measure definitions against their existing descriptions and approved business definitions.
Distinguish changes in business meaning from technical refactoring.
Report inconsistencies with supporting evidence and proposed corrections.
Flag ambiguities requiring human judgment.
Execution Boundary Do not modify the model automatically.
Version-controlled instructions reused across pull request reviews.

Detecting a change in meaning

The first pull request contains the following measure change.

Original definition

DAX Net Sales
Net Sales =
SUM('Fact Sales'[Sales Amount])
    - SUM('Fact Sales'[Discount Amount])

Revised definition

DAX Net Sales
Net Sales =
SUM('Fact Sales'[Sales Amount])
    - SUM('Fact Sales'[Discount Amount])
    - SUM('Fact Sales'[Return Amount])
Business Definition Comparison Net Sales
Existing measure description
Total sales revenue after deducting discounts.
Approved KPI glossary
Total sales revenue after deducting discounts and customer returns.
Documentation inconsistency — Customer returns not reflected in the measure description.

The measure name hasn't changed, and its description isn't missing. Detecting the issue requires understanding what has changed in the calculation.

Retail Analytics / Pull requests
Open
Update Net Sales calculation
main feature/net-sales-returns
Conversation Commits Checks Files changed
Claude Code bot commented
Semantic model review 1 finding
Measure: Net Sales · Documentation inconsistency
Measure description no longer reflects the calculation
The revised measure deducts customer returns in addition to discounts. The existing description omits this change, while the approved KPI glossary confirms the revised business definition.
Existing description Total sales revenue after deducting discounts.
Suggested description Total sales revenue after deducting discounts and customer returns.
Recommended action: Update the measure description before approval. No calculation change required.
Evidence: TMDL definition change and approved KPI glossary
Illustrative Claude Code pull request review generated by the automated semantic model review workflow.

Testing the automation beyond a single pull request

Detecting one inconsistency isn't enough. I want to establish whether the review can distinguish meaningful changes from routine development activity.

Automation Validation 4/4 passed
Test scenario Expected Reported Outcome
Business logic changed, description unchanged 1 1 Pass
DAX refactored, meaning unchanged 0 0 Pass
Business logic and description correctly updated 0 0 Pass
Previously identified inconsistency corrected 0 0 Pass
Illustrative validation results. Expected and reported values represent the number of review findings.

For the refactoring scenario, I've used an equivalent implementation that introduces variables without changing the calculation.

DAX Net Sales
Net Sales =
VAR GrossSales =
    SUM('Fact Sales'[Sales Amount])

VAR Discounts =
    SUM('Fact Sales'[Discount Amount])

RETURN
    GrossSales - Discounts

After the developer corrects the outdated description in the first pull request, another commit triggers the review. The workflow updates its summary to confirm that the previously reported inconsistency is no longer present.

Automated Revalidation Same pull request
Update Net Sales calculation
Activity timeline
Claude Code · Initial review 1 finding
Measure description no longer reflects the calculation.
Developer · Subsequent commit
Updated Net Sales measure description to include customer returns.
Automated review triggered
Claude Code · Revalidation 0 findings
Previously identified documentation inconsistency is no longer present.
Illustrative revalidation following a corrective commit to the same pull request.

Can I leave it running?

I'm evaluating whether this is a responsibility I can delegate repeatedly without creating another process that requires constant attention.

Automation Operating Profile Assignment 03
One-time setup
35 min
Configuration effort
Recurring execution
4
Executions
48 sec
Median duration
24,800
Total AI tokens
Review outcomes
Detection accuracy 1 of 1 introduced inconsistencies
Unnecessary findings 0
Revalidation Issue recognised as corrected
Illustrative operating metrics and review outcomes across four automated workflow executions.

My assessment

What appeals to me here is the recurring value rather than the complexity of the task. Once configured, the review requires no additional prompting and provides findings directly within the development workflow. I'd retain it as an advisory check, gathering more evidence about its reliability before considering stricter release controls.

Across these three assignments, what would I change about my development environment before making Claude Code a regular part of it?

What I'd use again and what I'd change first

The three assignments highlight different development challenges, but they share a common dependency: the quality of context available to Claude Code.

A reproducible visual query makes performance investigation more reliable. Visibility of downstream dependencies helps establish the scope of a change. Approved business definitions make contextual reviews possible.

These aren't exclusively AI requirements. They're development practices I'd want to strengthen regardless of which tools my team uses.

Giving AI more than project access

Before introducing Claude Code across multiple Power BI projects, I'd establish four complementary sources of context.

Context Discovery & Retrieval
Context discovery and retrieval architecture Claude Code uses CLAUDE.md as an entry point to discover four complementary sources of context: technical metadata, BI product inventory, business knowledge and validation assets. Claude Code CLAUDE.md Source locations · Retrieval instructions · Authority Technical metadata Model definitions Relationships Dependencies Report bindings TMDL, PBIR, Modeling MCP BI product inventory Ownership Downstream consumers Shared models Business criticality Central catalog, API, or maintained export Business knowledge KPI definitions Architectural decisions Reporting exceptions Repository documentation or connected knowledge sources Validation assets Regression queries Performance baselines Expected results Version-controlled test files
Illustrative context discovery architecture using CLAUDE.md as the entry point to complementary development knowledge sources.

I'd use CLAUDE.md as an entry point, defining where information lives, how to retrieve it, and which sources are authoritative. For instance, the semantic model can reveal which measures depend on Sales Target. The product inventory can identify other reports consuming that model, while business documentation explains why certain historical definitions must remain unchanged.

Standardising without duplicating

I wouldn't maintain a separate copy of every business definition or product dependency inside each repository. I'd separate project-specific knowledge from information shared across the BI environment.

Development Context Architecture
Project Level
Maintain within each project
Power BI Project A
CLAUDE.md
Power BI Project B
CLAUDE.md
Power BI Project C
CLAUDE.md
Architectural decisions and exceptions
Regression queries and expected results
Performance baselines
Project-specific automation configuration
Shared Knowledge Layer
Maintain centrally
BI product inventory
Shared KPI glossary
Development and governance standards
Reusable AI review instructions
Common workflow templates
Project-specific development context maintained locally, with centrally managed knowledge referenced across projects.

Making the next assignment easier

I'd also expect each completed assignment to improve the development environment for the next one.

Building Reusable Development Assets
Building reusable development assets Three assignments produce reusable development assets that support future performance investigations, KPI changes and automated documentation reviews. ASSIGNMENT RETAINED ASSETS FUTURE USE 01 Slow matrix Performance baselines and regression queries Detect performance regressions after subsequent changes 02 Revised target Dependency mapping and historical reporting rules Assess the impact of future KPI changes 03 Automated review Review instructions and workflow configuration Continuously check documentation consistency
Development assets retained from each assignment to support subsequent investigations, implementations and reviews.

I'd rather delegate a technically difficult assignment with clear acceptance criteria than a simple change whose consequences are difficult to establish. That's where I'd invest before expanding Claude Code's responsibilities. Otherwise, we're scaling our ability to make changes without scaling our ability to understand and approve them.


Closing Thoughts

If I were introducing Claude Code into my everyday Power BI development workflow, I'd start with maintenance rather than building something new. There is already enough complexity in investigating performance issues, managing changes, and keeping existing implementations reliable.

I'd keep assignments that require architectural judgment interactive and gradually automate the checks where expectations are well understood. The more confidence I build in the process, the more responsibility I'd be comfortable delegating.

Ultimately, I wouldn't measure the value of Claude Code by how much development work it completes. I'd measure it by how much of that work I can confidently approve without having to do it again.