https://store-images.s-microsoft.com/image/apps.1957.7bb51d6d-f066-4708-be88-56f55a7a97fb.0a090319-2328-4073-a36c-521da931cee4.a6b35434-a037-4fc6-8b15-0c42d3cdb7a2

HTML Content (lite)

by Daniel Marsh-Patrick

Microsoft PBI Certified
(3 ratings)
Download SampleInstructions

Visualise column or measure values as HTML in your Power BI reports.

This is a version of HTML Content that implements a reduced set of tags and also does not permit loading from external URLs, in order to comply with Power BI certification requirements. If you want as much access as possible to the DOM within a custom visual or need to load external resources, it is recommended that you use the regular version, which is uncertified and does not have these restrictions.

Report authors can use the visual to write their own columns and measures using DAX, to create dynamic HTML content, or render existing content from their data model that contains HTML in their reports.

For information on getting started, worked examples, more detail on visual properties or version history, you can visit www.html-content.com to learn more.

Privacy Policy

(also available on the website)

  • This visual is released under the MIT License and is free and open source.
  • This visual's code does not collect your data. Data is accessed for display purposes only.
  • This visual allows a report author to supply their own HTML and scripting content via the Power BI data model. If you have specific privacy and/or security concerns about this HTML and scripting content, please refer such concerns to the author of the report.

Advanced Use Case Considerations

For those who are more web development-savvy and want to attempt more advanced content, while the visual will have a good go at rendering the HTML content you supply, it only only passes your content into the DOM on your behalf, and what actually gets rendered can depend on a several factors.

We keep a living document of everything we currently know about on the website, but at a high level these include:

  • The browser(s) you are intending for your HTML content to be rendered in:
    • You will need to manage browser-specific behaviors if doing anything particularly complicated.
    • Note that Power BI Desktop is not a fully-functional web browser so may not render content in the same way as when reports are published to the Service.

  • Restrictions imposed upon the visual by Power BI:
    • Custom visuals run in a sandbox with the least amount of privilege.
    • Any content hosted inside the visual that needs elevated privileges will likely not work correctly.
    • This sandboxing also removes the domain from any custom visuals, so they can't impersonate powerbi.com.
    • Therefore, accessing services or embedding content from sites that have CORS restrictions will not work inside the visual.
    • These CORS restrictions are set by the target server and cannot be overridden from the client (our visual).

Visual capabilities

This visual is certified by Power BI

At a glance

https://store-images.s-microsoft.com/image/apps.46771.7bb51d6d-f066-4708-be88-56f55a7a97fb.0a090319-2328-4073-a36c-521da931cee4.d049cdfb-3e2f-4dfb-a9af-8fc032472de1
https://store-images.s-microsoft.com/image/apps.59283.7bb51d6d-f066-4708-be88-56f55a7a97fb.0a090319-2328-4073-a36c-521da931cee4.ac5f7c84-4b22-4506-8a42-a7da0a4bd9a2
https://store-images.s-microsoft.com/image/apps.30690.7bb51d6d-f066-4708-be88-56f55a7a97fb.0a090319-2328-4073-a36c-521da931cee4.7758cddd-26e9-4eb2-9e0b-0facba89b132
https://store-images.s-microsoft.com/image/apps.11166.7bb51d6d-f066-4708-be88-56f55a7a97fb.0a090319-2328-4073-a36c-521da931cee4.a02cb80a-4a72-4d74-8f46-70be46bdd23a