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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Display Options for Power BI Report Configurations (Fit to Width).

Hi,
I'm actually working with power bi to embed reports. I'm using the powerbi-client-react library to render the powerbi iframe. I need to add a display option of FitToWidth to my settings inside report configuration. The issue is I've added it, but the report still does not load with the full width. This is how I'm adding the settings in my report configuration object.

settings: {
    customLayout: {
        displayOption: models.DisplayOption.FitToWidth,
    },
    layoutType: models.LayoutType.Custom,
},

And then passing that configuration to the PowerBiEmbed element.
<PowerBIEmbed
        embedConfig={reportConfig}
        cssClassName={styles.report}
/>

Any suggestions of what I'm doing wrong? and why is this FitToWidth not working?
1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

How did you setting the target embed iframe? Did it include in a standalone html element or nested with different div panels with their owner style settings? 

Can you please share some more detail information about these?(e.g. detail operations steps, embed configurations and correspond event handling) They should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors