pbi_validate_dax
Validate DAX expressions using zero/one-row probes to catch syntax errors and optionally check semantic references against the live model.
Instructions
Parse-check a DAX expression by running a zero/one-row probe and catching errors.
kind='scalar' wraps the expression with EVALUATE ROW("v", ). kind='table' wraps the expression with EVALUATE TOPN(0, ).
semantic=True additionally checks every Table[Column] / [Measure]
reference against the live model index and heuristically flags a
percent-shaped format_string on a scalar-money expression — the
response then carries a semantic block (see
pbi_validate_dax_semantic_tool).
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": {
"expression": "<expression>"
},
"name": "pbi_validate_dax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | scalar | |
| semantic | No | ||
| expression | Yes | ||
| format_string | No | ||
| include_hidden | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |