execute_dax_local
Run DAX queries directly against an open Power BI Desktop report to retrieve aggregated data. Use it to analyze local models while built-in policies block raw table dumps and PII columns.
Instructions
Thực thi một truy vấn DAX trực tiếp lên báo cáo Power BI Desktop đang mở.
port: Cổng kết nối (ví dụ: '51234')
model_id: Tên catalog/model ID lấy từ công cụ list_local_reports
dax_query: Câu lệnh DAX (ví dụ: 'EVALUATE SUMMARIZECOLUMNS(...)')
max_rows: Số dòng tối đa trả về (mặc định 1000; kết quả có cột dimension bị siết còn 200 khi policy aggregate-only bật). Đặt 0 để bỏ giới hạn mềm. LƯU Ý POLICY: mặc định chặn dump bảng thô (EVALUATE 'Bảng' / ALL()) và cột trong PII blocklist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| max_rows | No | ||
| model_id | Yes | ||
| dax_query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |