Forum Discussion
Claude Code Integrate with Power Bi
Hi everyone,
I’m working on a POC for Power BI + Claude Integration, specifically the Report Authoring skill.We need to use Claude Code to create the required report pages and visuals. I’m currently trying to estimate the Claude Code credit/token consumption and approximate cost for completing this POC.
Has anyone worked on a similar POC using Claude Code? If so, could you please share:
Approximate credits/tokens consumed
Estimated cost
Any recommendations for estimating the usage before starting
Any guidance or experience would be really helpful. Thanks!
Hi Yash8160,
Thank you for reaching out to Microsoft Fabric Community.
For this POC, you can integrate Claude code with power bi using Microsoft’s Power BI Authoring skill for Fabric. This allows Claude code to work with power bi report and semantic model artifacts.
There is no fixed number of Claude code credits or tokens per power bi report or page. The consumption depends on the Claude model used and the complexity of the authoring task. So, build one representative report page, record its token usage, and use it as a baseline to estimate the remaining POC, including some allowance for testing and rework
For reference, follow the below documentation:
Skills for Fabric
Install Skills for FabricThanks and regards,
Anjan Kumar Chippa
7 Replies
- v-achippa
Community Support
Hi Yash8160,
Thank you for reaching out to Microsoft Fabric Community.
For this POC, you can integrate Claude code with power bi using Microsoft’s Power BI Authoring skill for Fabric. This allows Claude code to work with power bi report and semantic model artifacts.
There is no fixed number of Claude code credits or tokens per power bi report or page. The consumption depends on the Claude model used and the complexity of the authoring task. So, build one representative report page, record its token usage, and use it as a baseline to estimate the remaining POC, including some allowance for testing and rework
For reference, follow the below documentation:
Skills for Fabric
Install Skills for FabricThanks and regards,
Anjan Kumar Chippa - Lodha_Jaydeep
Solution Sage
Yash8160,
You can convert your porwer bi report (.pbix) to power bi project (.pbip) maintain the proprt folder structure and then you can open throgh VS code and then you can run caldue or any other AI tools on top of it for your POC.
I am not able break down the token consumption accurately as of now. But I have did similar excersice in one of project I worked on and you will definalty get the better and faster results.
Just make sure when you do this, you give the proper context to optimize the token usage.
Hope this helps, Please consider as an accepted soltution if helps or give some kudos.
Thanks - ShivekMaharaj
Community Champion
Hi Yash8160,
v-achippa is right that there isn't a fixed token/credit figure per Power BI page. I would add one billing distinction that is important when estimating the POC.
The Power BI Report Authoring skill is the Power BI-specific instruction/tooling layer used by the coding agent. Microsoft currently lists Claude Code as a compatible agent, but the token consumption comes from the Claude model and the amount of agent work required rather than from Fabric assigning a fixed number of credits to each report or visual.
The cost therefore depends on things such as:
- which Claude model you use;
- how much of the semantic model/report definition has to be inspected;
- number and complexity of pages/visuals;
- how many authoring and validation iterations are required;
- how much existing PBIR/PBIP context is repeatedly read.
I would also first establish how Claude Code will be billed. Anthropic documents that Claude Code can be used through a Pro/Max subscription allocation or through pay-as-you-go API/Console usage. Those are different models: subscription usage is governed by the plan's usage limits, while API-credit usage is charged at the model's token rates.For a POC, I would therefore benchmark one representative report workflow rather than trying to estimate from page count alone.
For example:
- Pick one page that is representative of the final POC - not the simplest page.
- Run the complete workflow you expect to use: inspect the semantic model → plan/design the page → author the PBIR → open/validate it → make any corrections.
- Record the actual Claude usage/cost for that complete iteration.
- Repeat with one simple page and one complex page if the report varies significantly.
- Use those measurements to estimate the remaining pages and add some allowance for rework and prompt iteration.
Microsoft's current Power BI agentic authoring guidance also separates report planning, design, authoring and management into different skills, so I would include whichever of those steps you intend to use when measuring the baseline.If you are using Anthropic API/pay-as-you-go rather than staying within a Claude subscription, you can then convert the measured model usage using Anthropic's current token pricing. If you are using Pro/Max, I would monitor the remaining Claude Code allocation instead of treating every page as a directly billed token cost.
So I would avoid quoting a generic "X credits per report" number. One or two representative end-to-end builds using your actual semantic model will give you a much more defensible POC estimate.
AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.
- Kagiyama_yutaka
Skilled Sharer
Power BI adds no token cost and the simple way is to run one small page end to end and check the Claude usage on that including the semantic model read, the page design, the PBIR generation, and the validation. Claude cost comes only from the model pricing and that single measurement becomes your baseline for the POC.
- v-achippa
Community Support
Hi Yash8160,
Thank you ShivekMaharaj and Kagiyama_yutakaShivekMaharaj for the prompt response.
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided above for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa - jubinsoni
Memorable Member
Hi Yash8160 ,
Agree with the others that measuring one real page is the way to go. Just wanted to add, if you're on API billing, running /cost in Claude Code at the end of a session shows the tokens and cost for that session, which makes the baseline easy to capture.
From doing similar work, a few things keep usage down a lot. The biggest token sink is Claude rereading large TMDL and PBIR files every session, so put a short CLAUDE.md in the project root with a summary of your key tables, measures and naming conventions. Then it can skip most of the exploring. Point it at the specific page folder you're working on rather than the whole project, and start a fresh session with /clear between pages so old context doesn't pile up.
Also worth using a mid-size model for the routine visual JSON work and only switching to a larger one for planning or tricky DAX. That alone can make a big difference on cost.