Index of every page on this site: llms.txt
All skills
github avatar

/powerbi-modeling

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Power BI semantic modeling assistant for building optimized data models. Use when working with Power BI semantic models, creating measures, designing star schemas, configuring relationships, implementing RLS, or optimizing model performance. Triggers on queries about DAX calculations, table relationships, dimension/fact table design, naming conventions, model documentation, cardinality, cross-filter direction, calculation groups, and data model best practices. Always connects to the active model first using power-bi-modeling MCP tools to understand the data structure before providing guidance.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/powerbi-modeling

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈155 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈5.6k more on demand in 5 files.

Description uses 7.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈619 characters, or 7.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Power BI Semantic Modeling

Guide users in building optimized, well-documented Power BI semantic models following Microsoft best practices.

When to Use This Skill

Use this skill when users ask about:

  • Creating or optimizing Power BI semantic models
  • Designing star schemas (dimension/fact tables)
  • Writing DAX measures or calculated columns
  • Configuring table relationships (cardinality, cross-filter)
  • Implementing row-level security (RLS)
  • Naming conventions for tables, columns, measures
  • Adding descriptions and documentation to models
  • Performance tuning and optimization
  • Calculation groups and field parameters
  • Model validation and best practice checks

Trigger phrases: "create a measure", "add relationship", "star schema", "optimize model", "DAX formula", "RLS", "naming convention", "model documentation", "cardinality", "cross-filter"

Prerequisites

Required Tools

  • Power BI Modeling MCP Server: Required for connecting to and modifying semantic models
    • Enables: connection_operations, table_operations, measure_operations, relationship_operations, etc.
    • Must be configured and running to interact with models

Optional Dependencies

  • Microsoft Learn MCP Server: Recommended for researching latest best practices
    • Enables: microsoft_docs_search, microsoft_docs_fetch
    • Use for complex scenarios, new features, and official documentation

Workflow

1. Connect and Analyze First

Before providing any modeling guidance, always examine the current model state:

1. List connections: connection_operations(operation: "ListConnections")
2. If no connection, check for local instances: connection_operations(operation: "ListLocalInstances")
3. Connect to the model (Desktop or Fabric)
4. Get model overview: model_operations(operation: "Get")
5. List tables: table_operations(operation: "List")
6. List relationships: relationship_operations(operation: "List")
7. List measures: measure_operations(operation: "List")

2. Evaluate Model Health

After connecting, assess the model against best practices:

  • Star Schema: Are tables properly classified as dimension or fact?
  • Relationships: Correct cardinality? Minimal bidirectional filters?
  • Naming: Human-readable, consistent naming conventions?
  • Documentation: Do tables, columns, measures have descriptions?
  • Measures: Explicit measures for key calculations?
  • Hidden Fields: Are technical columns hidden from report view?

3. Provide Targeted Guidance

Based on analysis, guide improvements using references:

Quick Reference: Model Quality Checklist

Area Best Practice
Tables Clear dimension vs fact classification
Naming Human-readable: Customer Name not CUST_NM
Descriptions All tables, columns, measures documented
Measures Explicit DAX measures for business metrics
Relationships One-to-many from dimension to fact
Cross-filter Single direction unless specifically needed
Hidden fields Hide technical keys, IDs from report view
Date table Dedicated marked date table

MCP Tools Reference

Use these Power BI Modeling MCP operations:

Operation Category Key Operations
connection_operations Connect, ListConnections, ListLocalInstances, ConnectFabric
model_operations Get, GetStats, ExportTMDL
table_operations List, Get, Create, Update, GetSchema
column_operations List, Get, Create, Update (descriptions, hidden, format)
measure_operations List, Get, Create, Update, Move
relationship_operations List, Get, Create, Update, Activate, Deactivate
dax_query_operations Execute, Validate
calculation_group_operations List, Create, Update
security_role_operations List, Create, Update, GetEffectivePermissions

Common Tasks

Add Measure with Description

measure_operations(
  operation: "Create",
  definitions: [{
    name: "Total Sales",
    tableName: "Sales",
    expression: "SUM(Sales[Amount])",
    formatString: "$#,##0",
    description: "Sum of all sales amounts"
  }]
)

Update Column Description

column_operations(
  operation: "Update",
  definitions: [{
    tableName: "Customer",
    name: "CustomerKey",
    description: "Unique identifier for customer dimension",
    isHidden: true
  }]
)

Create Relationship

relationship_operations(
  operation: "Create",
  definitions: [{
    fromTable: "Sales",
    fromColumn: "CustomerKey",
    toTable: "Customer",
    toColumn: "CustomerKey",
    crossFilteringBehavior: "OneDirection"
  }]
)

When to Use Microsoft Learn MCP

Research current best practices using microsoft_docs_search for:

  • Latest DAX function documentation
  • New Power BI features and capabilities
  • Complex modeling scenarios (SCD Type 2, many-to-many)
  • Performance optimization techniques
  • Security implementation patterns

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill facilitates Power BI semantic modeling by connecting to active models and applying Microsoft best practices. It includes a potential attack surface for indirect prompt injection because it ingests metadata and data from Power BI models, though no malicious behavior or safety bypasses were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    5/6 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 10 months ago
  • power-bi
  • dax
  • semantic-modeling
  • star-schema
  • relationships
  • rls
  • measures
  • performance-tuning
  • data-modeling

README badge

README badge for github/awesome-copilot/powerbi-modeling

Assists with building and optimizing Power BI semantic models by analyzing the active model and providing guidance on star schemas, DAX measures, relationships, RLS, and performance tuning. Connects to Power BI Desktop or Fabric via MCP tools to inspect table structure, relationships, and measures before recommending improvements aligned with Microsoft best practices.

Generated from the current SKILL.md.

Does this skill work with Power BI Desktop and Fabric semantic models?
Yes. The skill connects to both Power BI Desktop instances and Fabric models via the Power BI Modeling MCP Server using connection_operations with ConnectFabric support.
What do I need to set up before using this skill?
The Power BI Modeling MCP Server must be configured and running. The Microsoft Learn MCP Server is optional but recommended for researching latest best practices and DAX documentation.
Can this skill write DAX measures and create relationships in my model?
Yes. The skill can create measures with measure_operations, create relationships with relationship_operations, update column metadata, and modify model structure via the bundled MCP tools.
Does this skill help with row-level security (RLS)?
Yes. The skill provides guidance on implementing RLS and can interact with security roles via security_role_operations to list, create, and update role definitions.
What happens if I ask about a modeling scenario the skill doesn't recognize?
The skill will first connect to your model to analyze the current state, then provide targeted guidance based on Power BI best practices and Microsoft Learn documentation if needed.

Generated from the current SKILL.md. These answers refresh after source changes.