Add Measure
add_measureAdds a DAX measure with an optional format string to a specified table in a Power BI project, enabling calculated metrics for reports.
Instructions
Add a DAX measure to a table of a project. Example: dax='SUM(Sales[NetAmount])', format_string='"$"#,##0.00'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pbip_path": "<pbip_path>",
"table_name": "<table_name>",
"measure_name": "<measure_name>",
"dax": "<dax>"
},
"name": "add_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dax | Yes | ||
| pbip_path | Yes | ||
| table_name | Yes | ||
| measure_name | Yes | ||
| format_string | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||