Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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,

2 Replies

  • Anonymous's avatar
    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>