Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
SriGaG1
Helper II
Helper II

Showing a custom HTML is not working in power Bi Desktop

Hello team,

 

I do have a custom build HTML code as follows

 

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8"
	<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
	<title>HTML5</title>
	
	<style>	
		.iframeContainer{
			position: relative;
			width: 456px;
			height: 492px;
			overflow: hidden;
		}	
		.iframeContent{
			position: absolute;
			top: -416px;
			left: -21px;
			width: 489px;
			height: 904px;
		}	
	</style>
</head>
<body>	
	<div class="iframeContainer">
		<iframe src="https://www.worldweatheronline.com/nakiyadeniya-pahala-weather/southern/lk.aspx" scrolling="no" class="iframeContent"></iframe>
	</div>
</body>
</html>

 The above website link is working on power BI HTML Content custom visual. I need to put the above HTML content in to it.  When applying the above code in to a measure, it gives an error message . 

 

Normal website view

SriGaG1_0-1664906435011.png

After cropping the web page using above html code,

 

SriGaG1_1-1664906512038.png

Can you pls help on this?

 

 

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @SriGaG1  , 

 
You can add fully dynamic and nicely formatted HTML elements to your Power BI report by using HTML Text Styler.

What the HTML Text Styler can add to your report:

  • Your very own custom visualization.
  • Fully customized KPI cards.
  • Fully customized tables.
  • Dynamically formatted comments.
  • Much more...

 

Please refer to: Find the right app | Microsoft AppSource

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.