AI-Built HTML Dashboards vs Power BI: What You Lose

TOOLS Published 10 mins read By Leon Wei
AI-Built HTML Dashboards vs Power BI: What You Lose cover image

Quick summary

Summarize this blog with AI

An AI-built HTML page can look better than your Power BI report in an afternoon, but it replaces only the visual layer. Power BI also gives you scheduled refresh, row-level security, a shared semantic model, permissions with audit logs, and governed export. A static HTML file has none of these until someone builds and maintains them. Replace a report only when the HTML version passes the same refresh, security and number checks, and consider keeping the semantic model under a custom front end instead.

What was tested: a short Python script generated the kind of HTML dashboard an LLM typically writes, with a flattened CSV embedded in the page and a JavaScript filter by region. We inspected what the browser receives and measured file sizes at 2,000 and 1,000,000 rows. Power BI was not available for this guide, so every Power BI behavior below was checked against current Microsoft Learn documentation, not executed.

What an AI-generated HTML dashboard actually is

  1. A static snapshot. One file with data pasted in as JSON or CSV and a chart library from a CDN. It is current as of generation time.
  2. A script plus a page. A Python or Node job that queries a source and rewrites the HTML. Someone schedules, hosts and fixes it.
  3. A small web app. A front end calling an API at view time: a real application with authentication, hosting, logging and an owner.

Most "we replaced Power BI with HTML" demos are option 1, compared against a mature Power BI deployment. Write down which option you are evaluating before you score anything.

Scheduled refresh and stale data

In Power BI, refresh is set on the semantic model under Refresh > Schedule refresh with the Configure a refresh schedule toggle. The scheduled refresh documentation lists up to 8 refreshes per day on Pro and 48 on Premium Per User or Premium/Fabric capacity. The schedule is deactivated after four consecutive failures, paused after two months without report views (the owner is emailed), and every attempt is recorded in Refresh history.

A static page never refreshes, and nothing warns the viewer when it goes stale. The HTML route needs at minimum:

  • A scheduled regeneration job with credentials someone rotates.
  • A "data as of" timestamp written by the job, not typed by a person.
  • A failure alert sent to a named owner.
  • For on-premises sources, a secure network path (the gateway's job in Power BI).

Row-level security: why the flattened CSV is the real risk

A common pattern, sometimes suggested by the AI assistant itself, is to flatten the model into one CSV, embed it in the page and filter in JavaScript by the viewer's region. That filter controls what is drawn, not what is sent. Our test page embedded 2,000 orders across four regions and displayed only the West total:

$ grep -c ",East," dashboard_2000.html
500
$ grep -m2 ",East," dashboard_2000.html
100001,East,Customer 000001,144.26
100005,East,Customer 000005,335.46

Nobody needs grep: View Page Source, browser developer tools, or forwarding the file works too. Every viewer gets every row, and putting the page behind a login does not change that.

In Power BI, filtering happens in the service. You define roles in Desktop (Modeling > Manage roles), often with a dynamic rule such as [UserEmail] = USERPRINCIPALNAME(), then add members on the model's Security page. Filtered rows never reach the viewer. Two caveats from the RLS documentation:

  • RLS applies only to users with Viewer permissions. Workspace Admin, Member and Contributor roles see everything. If your audience sits in the workspace as Members, you have no RLS today in either tool.
  • Publish to web doesn't support reports that rely on RLS, and Microsoft warns that anyone on the internet can view published content, including model detail the report doesn't display. A public HTML page has the same exposure.

Confirm your current RLS actually works first: test dynamic RLS with real Viewer accounts, because Test as role evaluates dynamic rules under your own identity unless you pick a specific user to test as. The safe HTML pattern is one server-generated file per audience, or a back end that filters each request by the signed-in user. Either way, you are now maintaining a security system.

The semantic model as one source of metric truth

A semantic model holds measures, relationships and date logic once, so every report on it uses the same [Net Revenue]. An LLM building from a CSV rewrites that logic in JavaScript or pandas, silently deciding how to treat returns, currency, fiscal calendars and blanks. Six months later three HTML pages and one report show three revenue numbers, and you need a metric reconciliation playbook. If you cannot name the single place metric definitions live in the HTML option, score it low.

Sharing, permissions and audit

Power BI uses Microsoft Entra identities: workspace roles, app audiences, Build permission, sensitivity labels, and tenant settings that can disable export or public publishing. User activity appears in the Microsoft Purview audit log. A file emailed or dropped on SharePoint has that location's permissions, and once downloaded you can neither revoke it nor see who opened it. Decide now where you would answer "who viewed the salary dashboard last quarter."

Export to PDF and Excel

Power BI offers PDF and PowerPoint export, Analyze in Excel, and per-visual data export with documented limits: in the service, 150,000 rows to .xlsx, 500,000 to .xlsx with a live connection, and 30,000 to .csv. Exports respect RLS, and Excel and PDF exports can carry sensitivity labels. See choosing a Power BI export and validating the rows.

HTML gives you browser print-to-PDF, which often splits charts across pages, plus whatever buttons the generated code has. The typical "Download CSV" button exports the embedded data, which is the RLS problem again. List the exports users rely on and test each in the pilot.

Versioning and who maintains generated code

Power BI's version control has improved: saving as a Power BI Project (PBIP) stores report and model as text files for Git, and Fabric Git integration can deploy them. HTML diffs cleanly too. The harder question is ownership. Generated code is code; when its author leaves, someone inherits thousands of lines nobody designed, plus library upgrades and an on-call regeneration job. Name the owner and the backup.

Performance with large data

Power BI's engine compresses imported data and returns only the aggregates a visual needs. An embedded-data page ships everything: in our test, 1,000,000 four-column rows made a 36.4 MB HTML file (7.9 MB gzipped), which the browser must parse and re-aggregate on every filter change. Fine for thousands of rows, painful for millions. Adding a server to pre-aggregate turns it into option 3.

Where HTML genuinely wins

  • Bespoke visuals. Custom layouts, annotated scrollytelling and unusual chart types are faster in HTML than worked around in the visuals pane.
  • One-off narratives. A board memo or post-mortem with fixed numbers needs no refresh or model. Stamp the data date on it.
  • Offline and no-license audiences. A self-contained file opens without a license, tenant or network, which suits field teams and external recipients allowed to see every row in it.
  • Prototyping speed. Describing a layout to an LLM can beat dragging visuals, even if the result is rebuilt later.

Middle paths that keep the semantic model

Custom visuals inside Power BI

Power BI visuals are web code packaged as .pbiviz that receive data from the model and render inside a normal report, so RLS, refresh, sharing and audit stay intact. The documented data view limit is 30,000 rows by default, extendable with the fetchMoreData API up to 1,048,576 rows and 100 MB. Third-party HTML visuals from AppSource work the same way; check whether your admin allows uncertified visuals.

A custom front end that queries the model

The REST operation Datasets - Execute Queries (POST https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/executeQueries) runs DAX against a semantic model and returns JSON, so the number matches the report:

{
  "queries": [
    {
      "query": "EVALUATE SUMMARIZECOLUMNS('Date'[Month], \"Revenue\", [Net Revenue])"
    }
  ],
  "serializerSettings": { "includeNulls": true }
}
  • The tenant setting Dataset Execute Queries REST API (under Integration settings) must be enabled, and the caller needs Read and Build permission.
  • One DAX query and one result table per call; at most 100,000 rows or 1,000,000 values, and 15 MB; 120 query requests per minute per user. MDX, INFO functions and DMVs aren't supported, nor are Azure Analysis Services models.
  • Service principals aren't supported for models with RLS or SSO. Call with the signed-in user's token so RLS applies; a shared service account would bypass it.

Dashboards should request aggregates, so the row cap rarely matters. If you need 100,000 detail rows, revisit the design.

Scoring checklist

Fill this in for one specific report. Score each option 0 (missing), 1 (manual or fragile), 2 (works with known gaps) or 3 (works and tested). Set weights before scoring, with the report owner present.

CriterionWeight (1–3)Power BI todayHTML optionEvidence / notes
Refreshes on schedule; failures alert an owner
Viewers receive only rows they may see (checked in page source and network tab)
Metric definitions live in one shared place
Access can be granted and revoked per person or group
Views and exports are logged
Required PDF and Excel exports work and respect security
In version control with a named owner and backup
Loads in about 3 seconds at production data volume
Visual design meets the audience's needs
Works offline or without a license, if needed
Monthly cost: licenses, hosting, maintenance hours

Treat the row-security line as a gate, not a weight: if the report holds restricted data and the HTML option scores 0 there, it fails regardless of the total.

How to run a fair pilot

  1. Pick one real report with a restricted audience and a measure with edge cases, such as returns or a fiscal calendar. Not the easiest page.
  2. Name the option under test: snapshot, scheduled script or app.
  3. Reconcile numbers. For three periods and two slices, compare each headline figure with the existing model, using a DAX query (Desktop's DAX query view or executeQueries) rather than reading the old report. Record each difference and its cause.
  4. Test as a restricted user. Open the page as a real one-region account, then search the page source and network tab for another region's values. Any match fails.
  5. Break the refresh. Revoke the job's credentials for a day. Was anyone alerted? Did the page show it was stale?
  6. Run the exports users request and check row counts.
  7. Load full-size data and time it on a typical work laptop.
  8. Hand it over. Have someone who didn't build it make one backlog change, and time it.

Score from the pilot, not the demo. HTML may still win for narrative or public reports, and that is a fair result once security and numbers are checked.

FAQ

Can I keep RLS if the HTML page is behind company single sign-on?

Only if the server sends each signed-in user only their rows. Single sign-on controls who opens the page, not what data is already embedded in it. If one file holds all rows, every authenticated viewer can read all of them.

Does executeQueries replace the need for Power BI licenses?

No. The model still lives in a Power BI workspace, the caller needs Read and Build permission, and normal licensing and capacity rules apply. You gain control of the front end only. Confirm licensing for your scenario with your Microsoft admin.

Is using Copilot or another LLM to build Power BI reports a different question?

Yes. If AI helps write measures or build pages inside the semantic model, you keep refresh, RLS and audit. The risk in this guide comes from moving data out of the model into a file, not from using AI to build.

Interview Prep

Begin Your SQL, Python, and R Journey

Master 230 interview-style coding questions and build the data skills needed for analyst, scientist, and engineering roles.