This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am currently using PowerBI Premium and am embedding reports into my web application using an iFrame. When I am viewing reports at design time in app.powerbi.com the "Fit to page" option works great. When I embed these reports in an iFrame in my web app, it does not. Specifically it behaves as if it were set to "Fit to width".
I have read the following resources:
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details
but none of these were helpful in resolving this issue.
Not sure if this would help but this tool helped me to get rid of grey areas
https://lukaszpawlowski-ms.github.io/Optimize-Publish-To-Web/
Hey There,
Was looking for this for quite a few days. Works like a charm.
Thank you,
Nikhil
Hi @cyan
The suggestion by @fotomaxstudio would be the best option to get it to remove the white spaces at the end.
I opened ticket 117072116076977 about this on July 24 and will keep this topic updated. It is an ongoing production issue.
Hello,
@cjemmott any updates on this issue?
@GilbertQ You can check in the Microsoft embedded sample by resizing the page there is grey space at the height of the iframe meanwhile the width is adjusting normally. https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html
Thus it's not fulfilling the condition of "Fit to Page" view, any suggestions about a possible solution?
Thanks...
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 23 | |
| 22 | |
| 19 | |
| 16 |