跳到正文
Skillpedia
分析与电子表格40k · #7340

powerbi-modeling

它能做什么

帮你整理和优化 Power BI 中的数据。它能确保你的数据结构清晰、易于理解,并且生成报表的速度更快。

适用场景

  • ✓当你开始在 Power BI 中搭建一个新的数据模型的时候。
  • ✓当你希望加快 Power BI 报表速度的时候。
  • ✓当你想更好地梳理数据表之间的关联关系的时候。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/powerbi-modeling/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/powerbi-modeling/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何整理销售表和客户表,让它们在 Power BI 中更好地协同工作?”

每周 5 个新技能,1 分钟读完。

工作原理

工具会检查你的数据组织方式,针对表与表之间的关联提出改进建议,并帮你编写清晰的计算公式。它遵循微软推荐的最佳实践。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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",

…
常见问题

什么是“语义模型”(semantic model)?

它是 Power BI 组织数据的方式,让你能够据此创建报表。你可以把它理解为 Power BI 中数据的主体结构。

什么是“度量值”(measures)和“计算列”(calculated columns)?

度量值是你为分析数据而创建的计算,比如销售总额。计算列则是基于其他列,在表中新增的信息。

什么是“行级安全性”(RLS)?

RLS 可以让你控制谁能看到报表中的哪些数据。比如,经理只能查看自己团队的数据。

详情

作者的原始描述

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-filt

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7340
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能