add_measure_local
Create or update a DAX measure directly in the open Power BI Desktop model, specifying table, name, expression, and optional format string.
Instructions
Tạo mới hoặc cập nhật một Measure DAX trực tiếp vào mô hình Power BI Desktop đang mở (TOM).
Với thao tác modeling hàng loạt/phức tạp, ưu tiên MCP powerbi-modeling (Microsoft) nếu có.
port / model_id: lấy từ list_local_reports.
table_name: bảng chứa Measure (ví dụ: 'Sales').
measure_name: tên Measure (ví dụ: 'Total Sales').
expression: công thức DAX (ví dụ: 'SUM(Sales[Amount])').
format_string: định dạng hiển thị (ví dụ: '#,0' hoặc '0.0%').
description: mô tả ghi chú.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| model_id | Yes | ||
| expression | Yes | ||
| table_name | Yes | ||
| description | No | ||
| measure_name | Yes | ||
| format_string | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |