add_html_content_block
Add an HTML Content visual to a Power BI report and bind it to a DAX measure that returns HTML/CSS, enabling custom visuals.
Instructions
Add the HTML Content (lite) custom visual bound to a DAX measure that returns HTML/CSS: registers the visual type, adds the visual, and binds the measure to its content (values) role. daxHtmlMeasure = "Table[Measure]" (the measure must already exist and return an HTML string). visualGuid overrides the visual type id (confirm the certified guid in Desktop).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| name | Yes | a label/title for the visual | |
| page | Yes | page name or displayName | |
| visualGuid | No | override the HTML Content visual guid (optional) | |
| daxHtmlMeasure | Yes | the DAX HTML measure, "Table[Measure]" | |
| reportSessionId | Yes |