Loading...
Loading...
Compare original and translation side by side
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")1. 列出连接:connection_operations(operation: "ListConnections")
2. 若无连接,检查本地实例:connection_operations(operation: "ListLocalInstances")
3. 连接到模型(Desktop或Fabric版本)
4. 获取模型概览:model_operations(operation: "Get")
5. 列出表:table_operations(operation: "List")
6. 列出关系:relationship_operations(operation: "List")
7. 列出度量值:measure_operations(operation: "List")| Area | Best Practice |
|---|---|
| Tables | Clear dimension vs fact classification |
| Naming | Human-readable: |
| 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 |
| 领域 | 最佳实践 |
|---|---|
| 表 | 清晰区分维度表与事实表 |
| 命名 | 易读性:使用 |
| 描述 | 所有表、列、度量值均有文档说明 |
| 度量值 | 针对业务指标使用显式DAX度量值 |
| 关系 | 从维度表到事实表的一对多关系 |
| 交叉筛选 | 除非特别需要,否则使用单向筛选 |
| 隐藏字段 | 在报表视图中隐藏技术键、ID |
| 日期表 | 使用专用的标记日期表 |
| Operation Category | Key Operations |
|---|---|
| Connect, ListConnections, ListLocalInstances, ConnectFabric |
| Get, GetStats, ExportTMDL |
| List, Get, Create, Update, GetSchema |
| List, Get, Create, Update (descriptions, hidden, format) |
| List, Get, Create, Update, Move |
| List, Get, Create, Update, Activate, Deactivate |
| Execute, Validate |
| List, Create, Update |
| List, Create, Update, GetEffectivePermissions |
| 操作类别 | 关键操作 |
|---|---|
| Connect、ListConnections、ListLocalInstances、ConnectFabric |
| Get、GetStats、ExportTMDL |
| List、Get、Create、Update、GetSchema |
| List、Get、Create、Update(描述、隐藏、格式) |
| List、Get、Create、Update、Move |
| List、Get、Create、Update、Activate、Deactivate |
| Execute、Validate |
| List、Create、Update |
| List、Create、Update、GetEffectivePermissions |
measure_operations(
operation: "Create",
definitions: [{
name: "Total Sales",
tableName: "Sales",
expression: "SUM(Sales[Amount])",
formatString: "$#,##0",
description: "Sum of all sales amounts"
}]
)measure_operations(
operation: "Create",
definitions: [{
name: "Total Sales",
tableName: "Sales",
expression: "SUM(Sales[Amount])",
formatString: "$#,##0",
description: "Sum of all sales amounts"
}]
)column_operations(
operation: "Update",
definitions: [{
tableName: "Customer",
name: "CustomerKey",
description: "Unique identifier for customer dimension",
isHidden: true
}]
)column_operations(
operation: "Update",
definitions: [{
tableName: "Customer",
name: "CustomerKey",
description: "Unique identifier for customer dimension",
isHidden: true
}]
)relationship_operations(
operation: "Create",
definitions: [{
fromTable: "Sales",
fromColumn: "CustomerKey",
toTable: "Customer",
toColumn: "CustomerKey",
crossFilteringBehavior: "OneDirection"
}]
)relationship_operations(
operation: "Create",
definitions: [{
fromTable: "Sales",
fromColumn: "CustomerKey",
toTable: "Customer",
toColumn: "CustomerKey",
crossFilteringBehavior: "OneDirection"
}]
)microsoft_docs_searchmicrosoft_docs_search