Display websites within Power BI dynamically

This post is also available in: Deutsch

Recently, I had received several questions about whether you can view a website directly in Power BI. This can be implemented quite easily and is a good way to add more information to a report.

However, one restriction must be mentioned in advance. Unfortunately, Power BI Desktop does not load web pages, so we will focus on the Power BI Service here. But as a final result, here’s what we can look forward to:

Load HTML web pages within Power BI
Load HTML web pages within Power BI

Loading via iFrame with HTML5 Visual

In order to be able to load a website into our report, we must first ask ourselves which visual this can be done with. Here the HTML5 Viewer visual is very useful, with which we can display HTML code in a visual. In HTML itself there is then the iFrame tag, which allows to embed another website into your own website – or in our case into our Power BI Visual. This combination allows us to embed a website directly into a Power BI report.
But the website author can prevent the website from being included via iFrame. For example, YouTube and Google prevent embedding via iFrame. In this case, simply no content is displayed.

Add URL to table and create measure

First of all, of course, the URL must exist in the desired table and this must be returned by a Measure. In a first example, we create a simple table with the website name and the corresponding URL:

Website URLs as table
Website URLs as table

Now we have to create a measure that returns the selected website:

SelectedURL = SELECTEDVALUE( Websites[URL] )

What we need then is the code of the iFrame itself. In general, it would work to use only the iFrame tag. But personally I prefer to use correct HTML, which is why I use the basic tags of a website. My measure then looks like this:

IFrame = 
"<!DOCTYPE html>

<iframe src='"& [SelectedURL] &"' style='position: fixed; width:100%; height:100%'></iframe>


In the iFrame itself, we use as the website URL (src) the measure that returns the selected website. The style tags are required for the website to take up the full size of our visual. Otherwise the website would only be rendered in a small square.

What is missing now is the visualization. In order to do this, we first need the custom visual “HTML Content” (https://www.html-content.com), which allows us to render HTML content as a visual:

HTML Visual in Power BI
HTML Visual in Power BI

After that we still drag the measure “iFrame” into the HTML visual and create a slicer or table with which we select the desired website:

Display website in Power BI
Display website in Power BI

The PBIX file can be downloaded here:


Denis Selimovic

Denis Selimovic

As a user from the very beginning, Denis Selimovic is passionate about Power BI and everything related to it. In his blog WhatTheFact.bi, he writes about the latest developments in Power BI and provides tips and tricks on the subject. Besides being a Power BI enthusiast, blog author, speaker and principal consultant, he is also co-organizer of the Meetup Power BI User Group Switzerland.


5 4 votes
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Francesco Mantovani
Francesco Mantovani
1 month ago

Strange, it didn’t work

Name Name
Name Name
24 days ago

Same here. It shows a blocked content for any website I try.

1 month ago

The tile displays this message “This content is blocked. Contact the site owner to fix the issue.”

23 days ago

I’m getting an error “This content is blocked. Contact the site owner to fix the issue.”

Last edited 23 days ago by Moshe
Rohit Gupta
Rohit Gupta
12 days ago

Hi Denis,

i have used HTML Content custom visual in POwer BI , to display a website (https://in.investing.com/charts/forex-charts) where data keep on chnging . but in power bi not able to see that , only static data of the website i can see . any idea why?

10 days ago

Hi – I’m testing with Google.com, but I get this error “google.com refused to connect”

Would love your thoughts, please comment.x

Follow me on LinkedIn and you’ll gain access to valuable insights, expert tips, and industry updates related to Power BI. Stay ahead of the curve and supercharge your analytics skills today!

Supercharge your Power BI skills!