How To Use Claude Code for Power BI Development

How do you use Claude Code for Power BI development? Open your Power BI project (PBIP) folder in VS Code, run Claude Code in the built-in terminal, and describe the change in plain English: the agent reads the project files, writes the DAX, edits the Sales.tmdl file itself, and asks your permission before each command. Codex from OpenAI works the same way; this is a walkthrough for anyone who has only ever copy-pasted DAX out of a chat window.

Related videos

What you'll learn

  • Open the terminal inside VS Code (Ctrl+J on Windows, Cmd+J on Mac) and run basic commands

  • Start Claude Code with the claude command and hand it a job in plain English, such as adding a new measure to a table

  • Answer the permission prompt (yes, yes and don't ask again, or no) and switch modes with Shift+Tab: manual, accept edits, plan, auto, and bypassPermissions

  • Point the agent at one file with an @ tag so it edits exactly the TMDL file you mean

  • Call a reusable skill with /, tell local skills from global ones, and vet skills from third parties before you install them

Covered

Terminal basics, VS Code integrated terminal, AI harnesses, Claude Code, Codex, permission prompts and modes, Power BI project (PBIP) folders, TMDL model files, DAX measures, the context window, @ file tags, skills, Skills for Fabric

Tools

  • Claude Code (Anthropic), run from the VS Code terminal

  • Visual Studio Code

  • Power BI Desktop, with the report saved as a Power BI project (PBIP)

  • PowerShell on Windows, or Terminal on Mac

  • Codex (OpenAI), the equivalent harness if that is what your company allows

Prerequisites

  • A Power BI report saved as a Power BI project (PBIP), so the semantic model and report exist on disk as text files

  • VS Code installed, plus a Claude or ChatGPT account to sign in to the harness

  • Enough DAX knowledge to read a measure the agent writes and judge whether it is right; no terminal or coding experience needed

Resources

Subscribe to The Data Practitioner on YouTube