set_dynamic_format_string
Set a dynamic DAX-based format on measures or calculation items, letting displayed formats adjust by context like currency or percent.
Instructions
Set a dynamic (DAX-driven) format string on a measure OR a calculation item, so the displayed format changes with context (e.g. currency vs percent, or scaling units). Provide measure for a measure, or calculationItem (with its calculation-group table) for an item.
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": {
"sessionId": "<sessionId>",
"table": "<table>",
"measure": "<measure>",
"calculationItem": "<calculationItem>",
"daxExpression": "<daxExpression>"
},
"name": "set_dynamic_format_string"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | table (the measure's table, or the calculation-group table) | |
| measure | Yes | measure name; omit if targeting a calculation item | |
| sessionId | Yes | ||
| daxExpression | Yes | DAX expression returning the format string | |
| calculationItem | Yes | calculation-item name; omit if targeting a measure |