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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
max14
Frequent Visitor

Power BI embeded adjust report according to Vertical and Horizontal display

Hi

 

I have embeded my report. It is working fine when screen display is horzontal. But when screen is Vertically oriented report doest not adapt according to screen size. I have made report according to screen size also. I have tried this also but it still not work. What should I do so my report will adapt according to screen. 

 

<iframe width="100%" height="100%" src="" frameborder="0" allowFullScreen="true"></iframe>

 

 The gray area is my report

Screenshot 2024-07-19 at 7.26.10 PM.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @max14 ,

Base on your description, it seems like the visuals in the embedded report display grey with vertically oriented. Please update the codes as below and check if it can display normally:

Responsive visualizations coming to Power BI | Microsoft Power BI Blog | Microsoft Power BI

<style>
    .responsive-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
    .iframe-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
    }
</style>
<div class="iframe-container">
    <iframe class="responsive-iframe" src="YOUR_REPORT_URL" allowFullScreen="true"></iframe>
</div>

Best Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors