cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
grantculp
Advocate I
Advocate I

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
grantculp
Advocate I
Advocate I

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 @grantculp ,

 

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Kudoed Authors