set_custom_format_string
Set a measure's static custom format pattern using colour codes and arrow symbols, with positive;negative;zero sections to control display in Power BI models.
Instructions
Set a measure's STATIC custom format string: a 3/4-section pattern positive;negative;zero;"text" with optional [Colour] codes and UNICHAR arrows (distinct from set_dynamic_format_string, the DAX-driven one). e.g. "[Green]▲ #,0;[Red]▼ #,0;0".
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>",
"pattern": "<pattern>"
},
"name": "set_custom_format_string"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | the measure's table | |
| measure | Yes | the measure name | |
| pattern | Yes | the format pattern (3/4 sections separated by ;) | |
| sessionId | Yes |