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.
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 |