add_report_measure
Add a report-level DAX measure attached to a host table, ideal when the model can't be edited. Re-adding an existing name updates the measure.
Instructions
Add a REPORT-LEVEL measure (a DAX measure stored in the report, not the model - handy when you cannot edit the model). table = the host table it attaches to. Written into layout.config.modelExtensions (legacy best-known shape; confirm in Desktop). Re-adding the same name updates it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | measure name | |
| table | Yes | host table the measure attaches to | |
| formatString | No | optional format string, e.g. "#,0" or "0.0%" | |
| daxExpression | Yes | DAX expression | |
| displayFolder | No | optional display folder | |
| reportSessionId | Yes |