此注册表固定版本所收录的最新上游作者日期。

powerbi-modeling

已同步 v1.1.0 许可证: MIT 来源: github/awesome-copilot/skills/powerbi-modeling 提交: 4742f26 收录的最新变更:

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.

摘要

用途
协助依据建模最佳实务评估并改善 Power BI 语意模型。
使用时机
在设计或查看模型结构与关联、撰写 DAX、设置数据列层级安全性、补充模型文档或排查性能时使用。
输出结果
它会提供针对模型状况的建议,并可透过 Power BI 建模工具查看或修改度量值、关联与文档等模型对象。
上游变更(2 条,最新收录 2026-02-03)
3cc2412 Fix formatting of description in powerbi-modeling skill 将技能前置数据中的 description 字段改为以单引号括起。
545af30 Add Power BI modeling skill 添加 Power BI 语意模型技能,涵盖必要条件、模型查看、最佳实务检查、MCP 作业及常见建模任务。
npx skills add "lettucebo/Skills#v2.2.0@powerbi-modeling" --full-depth

⚠ v2.2.0 发布后即可使用

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

历史

v1.0.0 bootstrap
v1.1.0 baseline-verified 4742f26
v1.1.0 license-refresh 4742f26