set_calc_group_selection_expressions
Set DAX expressions for no-selection and multiple/empty selection in Power BI calculation groups, with optional dynamic format strings.
Instructions
Set a calculation group's NoSelectionExpression and/or MultipleOrEmptySelectionExpression - the DAX returned when no / multiple calc items are selected - with optional dynamic format strings. Needs compatibility level 1605+ (auto-bumped, reported back).
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>"
},
"name": "set_calc_group_selection_expressions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| noSelectionExpression | No | DAX run when NO calc item is selected (optional) | |
| noSelectionFormatString | No | dynamic format string for the no-selection expression (optional) | |
| multipleOrEmptyFormatString | No | dynamic format string for the multiple/empty expression (optional) | |
| multipleOrEmptySelectionExpression | No | DAX run when MULTIPLE or empty selection (optional) |