← PBIwise.com Contact

HTML Export Viewer

A Power BI custom visual that exports a styled HTML table to PDF, Excel, or Word — with optional live, recalculating Excel formulas.

What it does

HTML Export Viewer renders an HTML measure — typically a styled table built in DAX — and gives report users one-click buttons to export it to PDF, Excel, or Word.

Unlike a plain "print the page" export, this visual preserves the actual on-screen formatting (colors, bold text, alignment, borders) in every export format, and can optionally produce an Excel workbook with live, recalculating formulas instead of static numbers — useful for tables where a value is the result of a calculation (an escalation rate, a projection, a multi-year total) that a user may want to adjust after export.

Key features

Three export formats

PDF, Excel (.xlsx), and Word from the same content, one click each.

Formatting-faithful

Matches the colors, bold text, alignment, and borders shown on screen.

Live Excel formulas

Mark specific cells with a formula template and a small set of named constants — the Excel export writes real, recalculating formulas.

Configurable toolbar

Show/hide, button position, button text, and export file name, all from the formatting pane.

No external services

No network access, no telemetry, no data collection.

DAX-driven, not locked-in

Every export detail — layout, formulas, styling — is controlled by your own DAX measure, not hidden inside the visual.

How it's set up

Bind a single DAX measure that returns HTML content to the visual's "HTML content" field. At minimum, that means a measure returning an HTML string with at least one <table>. Optionally, mark specific cells with a data-formula attribute and declare a small set of named constants to get live, recalculating formulas in the Excel export instead of static values:

<td data-formula="{baseRent}*(1+{years}*{rentRate})"
    data-formula-vars="years:3">$218,000</td>

Full setup instructions, the exact attribute contract, and a worked DAX example are in the project's documentation on GitHub.

Privacy

This visual does not collect, store, or transmit any data. It does not make network requests of any kind, does not use telemetry or analytics, and does not communicate with any external service.

The visual receives one thing: the text of a single DAX measure bound to its "HTML content" data role, exactly as any other Power BI visual receives the fields bound to it. It renders that content inside the report, and — only when the report user clicks an export button, and only if the Power BI tenant's "Allow downloads from custom visuals" setting permits it — converts the currently displayed content into a PDF, Excel, or Word file, saved to the user's own device via Power BI's own built-in download mechanism. No data leaves the Power BI environment through this visual at any point.

The visual requests exactly one Power BI privilege, ExportContent, required to save the exported file. No other privilege is requested.

Last updated: 2026-09-11. Questions: info@pbiwise.com.

Terms of use

HTML Export Viewer is provided by PBIwise free of charge, "as is," without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall PBIwise be liable for any claim, damages, or other liability arising from the use of this visual.

Use of this visual is also subject to Microsoft's own terms governing Power BI custom visuals and the Microsoft commercial marketplace, in addition to these terms.

You may use this visual in any Power BI report. No license key, account, or registration is required. PBIwise may update this visual's functionality over time; continued use after an update constitutes acceptance of the visual as updated.

Last updated: 2026-09-11. Questions: info@pbiwise.com.

Support

Questions, bug reports, or feature requests: info@pbiwise.com.