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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI Report Embedded in Dynamics 365

Hey Community, 

 

I had a question on the issues I am facing when Embedding a Report (not dashboard) in Dynamics 365. 

Here is my strategy:

- I create a new dashboard in Dynamics and I create a new Web Resource within Dynamics to host the iframe.

- I then just display that iframe in the Dynamics Dashboard

I do not use the native Power BI integration because that only allows for Power BI dashboards and I need a full report in Dynamics.

 

The issues:

- The boards on the report within Dynamics are huge

- The report is not dynamically resizing when shifting from a large monitor to a laptop.

 

Here is my HTML code for the iframe:

<html><head><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta></head><body onfocusout="parent.setEmailRange();" data-new-gr-c-s-loaded="14.991.0" style="overflow-wrap: break-word;">
<iframe width="1600" height="670" src="https://app.powerbi.com/" frameborder="0" border-style="none" allowfullscreen="true"></iframe>
</body></html>

 

Also, I have attached some images. Please let me know if anyone has seen these issues or fixed them!

 

Best,Right_side.pngLeft_Side.png

2 REPLIES 2
Anonymous
Not applicable

I still haven't found a great solution to this problem. The code below is what I have found works best:

 

<html><head><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta></head><body onfocusout="parent.setEmailRange();" data-new-gr-c-s-loaded="14.1007.0" style="overflow-wrap: break-word;">
<iframe src="YOURLINKHERE" onload="javascript&colon;(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+&quot;px&quot;;}(this));" style="height:100%;width:100%;border:none;overflow:hidden;"></iframe>
</body></html>
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

See if this tool is helpful. It has helped me solve similar problems before

https://lukaszpawlowski-ms.github.io/Optimize-Publish-To-Web/ 

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors