powerbi-master
Power BI plugin that generates DAX and reviews models with self-validated TMDL and PBIR output.
- CCM score
- 48 of 100
- version
- 0.5.4
- GitHub stars
- 67
Own this plugin? Claim it
What it does
- Adds the
/pbi-daxand/pbi-model-reviewcommands and thepowerbi-expertagent for Power BI work - Covers DAX, Power Query M, TMDL and PBIR authoring, PBIP projects, and Tabular Editor and TOM tooling
- Includes
dax-mastery,performance-optimization, anddeployment-adminskills for slow reports, RLS/OLS, and CI/CD with GitHub Actions or Azure DevOps - Designed for Power BI developers and modelers working with Direct Lake, Microsoft Fabric, or enterprise semantic models
Complete Power BI expertise for 2026: DAX, TMDL (GA) authoring, PBIR enhanced report format (2026 default), PBIP projects, Power Query M, TOM/.NET SDK, Tabular Editor, Semantic Link / semantic-link-labs, fabric-cicd and Fabric CLI deployment, REST APIs, CI/CD with GitHub Actions and Azure DevOps, Fabric Git integration, Direct Lake, performance tuning, RLS/OLS, embedded analytics, and self-validation of generated TMDL/PBIR artifacts (TmdlSerializer, BPA, PBI-InspectorV2). Covers data modeling through enterprise governance.
Add marketplace
/plugin marketplace add JosiahSiegel/claude-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install powerbi-master@claude-plugin-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDAX (Data Analysis Expressions) Mastery
Overview
Complete DAX reference covering evaluation contexts, CALCULATE, time intelligence, iterators, table functions, performance optimization, and advanced patterns. DAX is the formula language for Power BI measures, calculated columns, calculated tables, and RLS filters.
Evaluation Contexts
Row Context
- Created by: Calculated columns, iterators (SUMX, FILTER, AVERAGEX, etc.), row-by-row evaluation
- Each row in the table has its own row context
- Access columns directly:
Sales[Amount] - Nested iterators create nested row contexts
Filter Context
- Created by: Slicers, visual filters, page filters, report filters, CALCULATE arguments
- Determines which rows are visible to aggregation functions
- Does NOT provide row-level access (cannot use
Sales[Amount]directly in a measure without aggregation)
Context Transition
- CALCULATE converts row context into filter context
- Happens when a measure is referenced inside an iterator
- Each row's column values become filter arguments
// Context transition example:
Sales Amount = SUM(Sales[Amount])
// Inside SUMX, each row triggers context transition:
Weighted Amount =
SUMX(
Products,
Products[Weight] * [Sales Amount] // [Sales Amount] triggers CALCULATE internally
)
CALCULATE - The Most Important Function
CALCULATE(<expression>, <filter1>, <filter2>, ...)
Filter argument types:
| Type | Example | Behavior |
|---|---|---|
| Boolean (table filter) | Products[Color] = "Red" | Adds filter, keeps existing context |
| Table expression | FILTER(ALL(Products), Products[Price] > 100) | Replaces filter on affected columns |
| REMOVEFILTERS | REMOVEFILTERS(Products[Color]) | Removes existing filter on column |
| ALL | ALL(Products) | Removes all filters on table |
| KEEPFILTERS | KEEPFILTERS(Products[Color] = "Red") | Intersects with existing filter |
| USERELATIONSHIP | USERELATIONSHIP(Sales[ShipDate], Date[Date]) | Activates inactive relationship |
| CROSSFILTER | CROSSFILTER(Sales[ProductID], Products[ID], Both) | Changes cross-filter direction |
Critical rules:
- Boolean filters are syntactic sugar for FILTER(ALL(column), condition)
- Boolean filters REPLACE the existing filter on that column
- Use KEEPFILTERS to ADD to (intersect with) existing filters
- CALCULATE modifiers (ALL, REMOVEFILTERS) execute BEFORE filter arguments
Time Intelligence Quick Reference
Prerequisite: A proper Date table marked as a date table with a continuous date column.
| Function | Purpose | Example |
|---|---|---|
| TOTALYTD | Year-to-date | TOTALYTD([Sales], Date[Date]) |
| TOTALMTD | Month-to-date | TOTALMTD([Sales], Date[Date]) |
| TOTALQTD | Quarter-to-date | TOTALQTD([Sales], Date[Date]) |
| SAMEPERIODLASTYEAR | Same period, prior year | CALCULATE([Sales], SAMEPERIODLASTYEAR(Date[Date])) |
| DATEADD | Shift by interval | CALCULATE([Sales], DATEADD(Date[Date], -1, MONTH)) |
| PARALLELPERIOD | Entire shifted period | CALCULATE([Sales], PARALLELPERIOD(Date[Date], -1, QUARTER)) |
| DATESYTD | Date table filtered to YTD | CALCULATE([Sales], DATESYTD(Date[Date])) |
| DATESBETWEEN | Date range | CALCULATE([Sales], DATESBETWEEN(Date[Date], start, end)) |
| PREVIOUSMONTH | Entire previous month | CALCULATE([Sales], PREVIOUSMONTH(Date[Date])) |
| PREVIOUSYEAR | Entire previous year | CALCULATE([Sales], PREVIOUSYEAR(Date[Date])) |
Common time intelligence patterns:
// Year-over-Year Growth %
YoY Growth % =
VAR CurrentSales = [Total Sales]
VAR PriorYearSales = CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Date[Date]))
RETURN
DIVIDE(CurrentSales - PriorYearSales, PriorYearSales)
// Rolling 12-Month Total
Rolling 12M =
CALCULATE(
[Total Sales],
DATESINPERIOD(Date[Date], MAX(Date[Date]), -12, MONTH)
)
// Moving Average (3 months)
3M Moving Avg =
AVERAGEX(
DATESINPERIOD(Date[Date], MAX(Date[Date]), -3, MONTH),
CALCULATE([Total Sales])
)
Variables (VAR/RETURN)
Always use variables for readability and performance:
Profit Margin % =
VAR TotalRevenue = SUM(Sales[Revenue])
VAR TotalCost = SUM(Sales[Cost])
VAR Profit = TotalRevenue - TotalCost
RETURN
DIVIDE(Profit, TotalRevenue)
Rules:
- Variables are evaluated once (performance benefit when reused)
- Variables capture filter context at the point of definition
- Variables can hold scalar values or tables
- Use meaningful names (not
x,temp)
Iterator Functions
Iterators scan a table row by row, creating row context:
| Function | Purpose |
|---|---|
| SUMX | Sum of expression evaluated per row |
| AVERAGEX | Average of expression per row |
| MINX / MAXX | Min/Max of expression per row |
| COUNTX | Count of non-blank expression results |
| RANKX | Rank based on expression |
| FILTER | Returns table rows matching condition |
| ADDCOLUMNS | Adds calculated columns to table |
| SELECTCOLUMNS | Returns table with selected/calculated columns |
| GENERATE | Cross-join with row context |
// Weighted average price
Weighted Avg Price =
SUMX(
Sales,
Sales[Quantity] * RELATED(Products[UnitPrice])
) / SUM(Sales[Quantity])
Calculation Groups
Reduce measure sprawl by defining reusable calculation patterns:
// Instead of creating YTD, PY, YoY for EVERY measure:
// Create ONE calculation group with items:
// - Current: SELECTEDMEASURE()
// - YTD: CALCULATE(SELECTEDMEASURE(), DATESYTD(Date[Date]))
// - PY: CALCULATE(SELECTEDMEASURE(), SAMEPERIODLASTYEAR(Date[Date]))
// - YoY%: VAR Curr = SELECTEDMEASURE()
// VAR PY = CALCULATE(SELECTEDMEASURE(), SAMEPERIODLASTYEAR(Date[Date]))
// RETURN DIVIDE(Curr - PY, PY)
Create via Tabular Editor, TMDL view in Desktop, or TOM/.NET SDK.
Field Parameters
Enable users to dynamically switch dimensions or measures in visuals:
// Created via Modeling tab > New parameter > Fields
// Generates a calculated table:
Parameter =
{
("Revenue", NAMEOF(Sales[Total Revenue]), 0),
("Profit", NAMEOF(Sales[Total Profit]), 1),
("Units", NAMEOF(Sales[Total Units]), 2)
}
User-Defined Functions (September 2025 Preview)
The most significant DAX language update since variables (2015). Define reusable parameterized functions:
// Define a UDF in DAX query view or model
DEFINE
FUNCTION AddTax = (amount : NUMERIC) => amount * 1.1
// Nest UDFs
FUNCTION AddTaxAndDiscount = (amount : NUMERIC, discount : NUMERIC) =>
AddTax(amount - discount)
EVALUATE { AddTaxAndDiscount(100, 20) } // Returns 88
Parameter types: NUMERIC, Scalar, Table, AnyVal, AnyRef, CalendarRef, ColumnRef, MeasureRef, TableRef
Parameter modes: val (eager evaluation) or expr (lazy/context-sensitive)
Usage: Once defined and saved to the model, call UDFs from measures, calculated columns, visual calculations, and other UDFs.
Enable: File > Options > Preview features > DAX user-defined functions
Window Functions (WINDOW, INDEX, OFFSET)
DAX window functions for row-relative and range calculations:
// Running total using WINDOW
Running Total =
CALCULATE(
[Total Sales],
WINDOW(1, ABS, 0, REL, ALLSELECTED(Date[Month]),
ORDERBY(Date[MonthNumber], ASC))
)
// Previous row value using OFFSET
Previous Month Sales =
CALCULATE(
[Total Sales],
OFFSET(-1, ALLSELECTED(Date[Month]),
ORDERBY(Date[MonthNumber], ASC))
)
// Nth row using INDEX
First Month Sales =
CALCULATE(
[Total Sales],
INDEX(1, ALLSELECTED(Date[Month]),
ORDERBY(Date[MonthNumber], ASC))
)
Key clauses:
ORDERBY-- sort order within the windowPARTITIONBY-- subset of rows (the "window" partition)MATCHBY-- identify the current row in ambiguous contexts
Visual Calculations (2024-2026)
Calculations scoped to the visual matrix, not the data model:
| Function | Purpose |
|---|---|
| FIRST | Value from first row of axis |
| LAST | Value from last row of axis |
| PREVIOUS | Value from previous row |
| NEXT | Value from next row |
| LOOKUP | Value with filter (June 2025) |
| LOOKUPWITHTOTALS | Value with filter, respects totals (June 2025) |
Visual calculations are defined per-visual and do not affect the semantic model.
Calendar-Based Time Intelligence (September 2025 Preview)
Define custom calendars (fiscal, retail, 13-month, lunar) with 8 new week-based functions:
| Function | Purpose |
|---|---|
| TOTALWTD | Week-to-date running total |
| CLOSINGBALANCEWEEK | Closing balance for the week |
| OPENINGBALANCEWEEK | Opening balance for the week |
| STARTOFWEEK | First date of current week |
| ENDOFWEEK | Last date of current week |
| NEXTWEEK | Table of dates for next week |
| PREVIOUSWEEK | Table of dates for previous week |
| DATESWTD | Week-to-date date filter |
Enable: File > Options > Preview features > Enhanced DAX Time Intelligence
Dynamic Format Strings
Apply context-dependent formatting without converting to text (GA in Desktop and Report Server Jan 2025+):
// Dynamic format string for currency
Total Sales =
SUM(Sales[Amount])
// Format string expression (set in measure properties):
// = IF(SELECTEDVALUE(Currency[Code]) = "EUR", "€#,##0.00", "$#,##0.00")
Advantage over FORMAT(): Keeps numeric data type, enabling correct chart rendering and sorting.
TABLEOF and NAMEOF (February 2026)
Reference model objects that auto-adapt to renames:
// NAMEOF returns the name of a column/measure/calendar as text
NAMEOF(Sales[Amount]) // Returns "Amount"
// TABLEOF returns a reference to the table of a column/measure
TABLEOF(Sales[Amount]) // Returns reference to Sales table
Useful inside UDFs for safer, rename-proof code.
Common Anti-Patterns
| Anti-Pattern | Problem | Fix |
|---|---|---|
FILTER(table, ...) as CALCULATE arg | Full table scan, no engine optimization | Use boolean filter: column = value |
| Nested CALCULATE | Confusing context overrides | Use single CALCULATE with multiple filters |
| SUMX over entire table for simple sum | Unnecessary iterator | Use SUM() for simple column aggregation |
| FORMAT() in measures for sorting | Returns text, cannot sort numerically | Use separate sort column |
| Calculated columns for aggregation | Stored per row, wastes memory | Use measures instead |
| COUNTROWS(FILTER(table,...)) | Slower than CALCULATE(COUNTROWS(table), filter) | Use CALCULATE with filter |
| Copy-pasting DAX across measures | Hard to maintain, error-prone | Use UDFs (preview) to define reusable logic |
| FORMAT() for conditional display | Returns text, breaks sorting/charts | Use dynamic format strings instead |
| Overusing EARLIER() | Confusing, legacy pattern | Use VAR to capture outer context |
| Ignoring MATCHBY in window functions | Ambiguous row identity | Always specify MATCHBY when partition has duplicates |
Additional Resources
Reference Files
references/dax-function-categories.md-- Complete function reference organized by category including INFO functions, window functions, and 2025-2026 additionsreferences/dax-patterns-advanced.md-- Advanced patterns: virtual relationships, dynamic segmentation, parent-child hierarchies, basket analysis
Readme
powerbi-master
Complete Power BI expertise plugin for Claude Code, covering everything from DAX and data modeling to programmatic report creation, REST API automation, Fabric integration, and enterprise deployment.
Components
Agent
- powerbi-expert -- Expert agent for all Power BI tasks. Activates skills automatically based on question topic.
Skills
| Skill | Coverage |
|---|---|
| powerbi-core | Data modeling, star schema, relationships, connectivity modes, storage modes, gateways, incremental refresh, common gotchas |
| dax-mastery | DAX formulas, CALCULATE, evaluation contexts, time intelligence, iterators, calculation groups, field parameters, anti-patterns |
| power-query-m | M language, query folding, transformations, custom connectors, parameters, pagination, error handling |
| programmatic-development | PBIR/PBIP format, TOM/.NET SDK, TMDL, Tabular Editor, pbi-tools, ALM Toolkit, code-first reports |
| deployment-admin | Deployment pipelines, CI/CD (GitHub Actions, Azure DevOps), RLS/OLS, capacity management, governance, Report Server |
| rest-api-automation | REST API endpoints, authentication, embed tokens, push datasets, admin APIs, JavaScript SDK embedding |
| fabric-integration | Direct Lake, OneLake, lakehouse/warehouse, Dataflow Gen2, notebooks, Semantic Link (sempy), medallion architecture |
| performance-optimization | Performance Analyzer, DAX Studio, VertiPaq Analyzer, aggregations, composite models, optimization checklists |
Commands
| Command | Purpose |
|---|---|
/pbi-dax | Generate a DAX measure or pattern from a business requirement |
/pbi-model-review | Review a data model for best practices and anti-patterns |
Installation
/plugin marketplace add JosiahSiegel/claude-plugin-marketplace
/plugin install powerbi-master@claude-plugin-marketplace
Usage Examples
- "Write a DAX measure for year-over-year sales growth"
- "How do I create a Power BI report programmatically using PBIR?"
- "Set up CI/CD for Power BI with GitHub Actions"
- "My report is slow, help me diagnose with DAX Studio"
- "Should I use Direct Lake or Import mode for my Fabric data?"
- "Generate an embed token for a Power BI report using service principal"
- "Review my data model for performance issues"
License
MIT
Details
- Marketplace
- JosiahSiegel/claude-plugin-marketplace
- Source
- plugins/powerbi-master
- Author
- Josiah Siegel
- Category
- Community
- Keywords
- powerbi, power-bi, dax, power-query, m-language, pbir, pbip, pbix, semantic-model, dataset, tabular-editor, tom, tmdl, tmdl-mastery, tmdl-syntax, tmdl-view, tmdl-serialization, tmdl-cicd, tabular-model-definition-language, tmsl, xmla, rest-api, embedded, report, dashboard, visualization, directquery, import-mode, direct-lake, fabric, onelake, lakehouse, dataflow, gateway, incremental-refresh, rls, ols, deployment-pipeline, cicd, pbi-tools, fabric-cicd, fabric-cli, semantic-link, sempy, semantic-link-labs, pbir-enhanced-report-format, pbir-ga-2026, tmdl-ga, validation, bpa, best-practice-analyzer, pbi-inspector, pbi-inspectorv2, fab-inspector, tmdl-validation, pbir-validation, self-validation, ci-quality-gate, calculation-groups, field-parameters, star-schema, performance, dax-studio, vertipaq, premium, ppu, capacity, service-principal, embed-token, power-bi-service, power-bi-desktop, report-server, composite-model, aggregations, streaming-dataset, paginated-report, microsoft, analytics, 2025, 2026
- Listed since
- Apr 7, 2026
Questions
What is powerbi-master?
powerbi-master is a Claude Code plugin listed on Claude Marketplaces in the Data Science & Analytics category. Its page on Claude Marketplaces links to the powerbi-master source on GitHub.
How do I install powerbi-master?
Run /plugin marketplace add JosiahSiegel/claude-plugin-marketplace inside Claude Code, then /plugin install powerbi-master@claude-plugin-marketplace, to install powerbi-master. After that, powerbi-master is part of Claude Code.
Which category is powerbi-master in?
powerbi-master is in the Data Science & Analytics category on Claude Marketplaces. Other listings in that category next to powerbi-master include ruflo-graph-intelligence, big-data-cloud-automation and survey_monkey-automation.
Where is the source code of powerbi-master?
powerbi-master comes from the josiahsiegel-claude-plugin-marketplace marketplace on GitHub at https://github.com/JosiahSiegel/claude-plugin-marketplace. The JosiahSiegel account on GitHub publishes powerbi-master.
More from JosiahSiegel/claude-plugin-marketplace
All 43- powershell-masterv2.0.6
- python-masterv2.3.6
- react-masterv2.1.2
- salesforce-masterv2.2.8
- ssdt-masterv1.6.8
- stripe-billing-masterv1.0.3
- tailwindcss-masterv2.2.3
- terraform-masterv2.0.5
- test-masterv1.6.8
- tsql-masterv2.0.10
- tui-masterv1.1.0
- unity-masterv1.0.4
- viral-video-masterv2.0.4
- windows-path-masterv1.0.7
- adf-masterv4.3.4
- ado-masterv1.5.9
- azure-masterv1.3.4
- azure-to-docker-masterv1.1.9
- bash-masterv2.0.7
- clerk-auth-masterv1.0.2
- cloudflare-masterv1.1.5
- context-masterv2.2.5
- doc-masterv1.6.1
- docker-masterv1.5.8
Similar to powerbi-master
More Data Science & AnalyticsPower BI Authoring MCP Server (Local)MCP servermicrosoft1.3K starsCreate and modify Power BI semantic models: tables, columns, measures, relationships, and DAX.
powerbi-modelingSkillgithub/awesome-copilot10.1K installsPower BI semantic modeling guidance that connects to the active model before recommending star schema, DAX, or RLS changes.
powerbi-authoringPluginmicrosoft/skills-for-fabric1.4K starsDeveloper skills for authoring Microsoft Power BI solutions.
power-bi-model-design-reviewSkillgithub/awesome-copilot9K installsStructured review framework for Power BI data models covering schema, relationships, storage modes, and performance.
sap-dataspherePluginsecondsky/sap-skills503 starsSAP Datasphere development skill with 3 specialized agents, 5 slash commands, and validation hooks. Use when building data warehouses on SAP BTP, creating analy
reportsPlugindata-goblin/power-bi-agentic-development1.1K starsBuild, format, optimize, and review interactive Power BI reports.