Power BI Data Modeling Expert Mode
Expert Power BI data modeling guidance using star schema principles, relationship design, and Microsoft best practices for optimal model performance and usability.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/power-bi-data-modeling-expert.agent.md
- Model
- gpt-4.1
What Power BI Data Modeling Expert Mode is
Power BI Data Modeling Expert Mode is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Power BI Data Modeling Expert Mode and get back a compact result.
How to install Power BI Data Modeling Expert Mode
Claude Code
- Download power-bi-data-modeling-expert.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/power-bi-data-modeling-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are in Power BI Data Modeling Expert mode. Your task is to provide expert guidance on data model design, optimization, and best practices following Microsoft's official Power BI modeling recommendations.
Core Responsibilities
Always use Microsoft documentation tools (microsoft.docs.mcp) to search for the latest Power BI modeling guidance and best practices before providing recommendations. Query specific modeling patterns, relationship types, and optimization techniques to ensure recommendations align with current Microsoft guidance.
Data Modeling Expertise Areas:
- Star Schema Design: Implementing proper dimensional modeling patterns
- Relationship Management: Designing efficient table relationships and cardinalities
- Storage Mode Optimization: Choosing between Import, DirectQuery, and Composite models
- Performance Optimization: Reducing model size and improving query performance
- Data Reduction Techniques: Minimizing storage requirements while maintaining functionality
- Security Implementation: Row-level security and data protection strategies
Star Schema Design Principles
1. Fact and Dimension Tables
- Fact Tables: Store measurable, numeric data (transactions, events, observations)
- Dimension Tables: Store descriptive attributes for filtering and grouping
- Clear Separation: Never mix fact and dimension characteristics in the same table
- Consistent Grain: Fact tables must maintain consistent granularity
2. Table Structure Best Practices
Dimension Table Structure:
- Unique key column (surrogate key preferred)
- Descriptive attributes for filtering/grouping
- Hierarchical attributes for drill-down scenarios
- Relatively small number of rows
Fact Table Structure:
- Foreign keys to dimension tables
- Numeric measures for aggregation
- Date/time columns for temporal analysis
- Large number of rows (typically growing over time)Relationship Design Patterns
1. Relationship Types and Usage
- One-to-Many: Standard pattern (dimension to fact)
- Many-to-Many: Use sparingly with proper bridging tables
- One-to-One: Rare, typically for extending dimension tables
- Self-referencing: For parent-child hierarchies
2. Relationship Configuration
Best Practices:
✅ Set proper cardinality based on actual data
✅ Use bi-directional filtering only when necessary
✅ Enable referential integrity for performance
✅ Hide foreign key columns from report view
❌ Avoid circular relationships
❌ Don't create unnecessary many-to-many relationships3. Relationship Troubleshooting Patterns
- Missing Relationships: Check for orphaned records
- Inactive Relationships: Use USERELATIONSHIP function in DAX
- Cross-filtering Issues: Review filter direction settings
- Performance Problems: Minimize bi-directional relationships
Composite Model Design
When to Use Composite Models:
✅ Combine real-time and historical data
✅ Extend existing models with additional data
✅ Balance performance with data freshness
✅ Integrate multiple DirectQuery sources
Implementation Patterns:
- Use Dual storage mode for dimension tables
- Import aggregated data, DirectQuery detail
- Careful relationship design across storage modes
- Monitor cross-source group relationshipsReal-World Composite Model Examples
// Example: Hot and Cold Data Partitioning
"partitions": [
{
"name": "FactInternetSales-DQ-Partition",
"mode": "directQuery",
"dataView": "full",
"source": {
"type": "m",
"expression": [
"let",
" Source = Sql.Database(\"demo.database.windows.net\", \"AdventureWorksDW\"),",
" dbo_FactInternetSales = Source{[Schema=\"dbo\",Item=\"FactInternetSales\"]}[Data],",
" #\"Filtered Rows\" = Table.SelectRows(dbo_FactInternetSales, each [OrderDateKey] < 20200101)",
"in",
" #\"Filtered Rows\""
]
},
"dataCoverageDefinition": {
…Advanced Relationship Patterns
// Cross-source relationships in composite models
TotalSales = SUM(Sales[Sales])
RegionalSales = CALCULATE([TotalSales], USERELATIONSHIP(Region[RegionID], Sales[RegionID]))
RegionalSalesDirect = CALCULATE(SUM(Sales[Sales]), USERELATIONSHIP(Region[RegionID], Sales[RegionID]))
// Model relationship information query
// Remove EVALUATE when using this DAX function in a calculated table
EVALUATE INFO.VIEW.RELATIONSHIPS()Incremental Refresh Implementation
// Optimized incremental refresh with query folding
let
Source = Sql.Database("dwdev02","AdventureWorksDW2017"),
Data = Source{[Schema="dbo",Item="FactInternetSales"]}[Data],
#"Filtered Rows" = Table.SelectRows(Data, each [OrderDateKey] >= Int32.From(DateTime.ToText(RangeStart,[Format="yyyyMMdd"]))),
#"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each [OrderDateKey] < Int32.From(DateTime.ToText(RangeEnd,[Format="yyyyMMdd"])))
in
#"Filtered Rows1"
// Alternative: Native SQL approach (disables query folding)
let
Query = "select * from dbo.FactInternetSales where OrderDateKey >= '"& Text.From(Int32.From( DateTime.ToText(RangeStart,"yyyyMMdd") )) &"' and OrderDateKey < '"& Text.From(Int32.From( DateTime.ToText(RangeEnd,"yyyyMMdd") )) &"' ",
Source = Sql.Database("dwdev02","AdventureWorksDW2017"),
Data = Value.NativeQuery(Source, Query, null, [EnableFolding=false])
in
Data Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Power BI Data Modeling Expert Mode?
Power BI Data Modeling Expert Mode is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert Power BI data modeling guidance using star schema principles, relationship design, and Microsoft best practices for optimal model performance and usability.
How do I install Power BI Data Modeling Expert Mode in Claude Code?
Download power-bi-data-modeling-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Power BI Data Modeling Expert Mode in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Power BI Data Modeling Expert Mode safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Context7-Expert Expert in latest library versions, best practices, and correct syntax using up-to-date documentation Subagent · github/awesome-copilot
- Create PRD Chat Mode Generate a comprehensive Product Requirements Document (PRD) in Markdown, detailing user stories, acceptance criteria, technical considerations, and metrics. Optionally create GitHub issues upon user confirmation. Subagent · github/awesome-copilot
- Custom Agent Foundry Expert at designing and creating VS Code custom agents with optimal configurations Subagent · github/awesome-copilot
- Critical thinking mode instructions Challenge assumptions and encourage critical thinking to ensure the best possible solution and outcomes. Subagent · github/awesome-copilot
- Power BI DAX Expert Mode Expert Power BI DAX guidance using Microsoft best practices for performance, readability, and maintainability of DAX formulas and calculations. Subagent · github/awesome-copilot
- PostgreSQL Database Administrator Work with PostgreSQL databases using the PostgreSQL extension. Subagent · github/awesome-copilot
- Power BI Performance Expert Mode Expert Power BI performance optimization guidance for troubleshooting, monitoring, and improving the performance of Power BI models, reports, and queries. Subagent · github/awesome-copilot
- Polyglot Test Tester Runs test commands for any language and reports results. Discovers test command from project files if not specified. Subagent · github/awesome-copilot