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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rolopezteteruk
Frequent Visitor

Dashboard image not fitting

Hello I'm making a dashboard from a power bi report and I need to attach some images that are in the report. But when i place them in the dashboard it takes a lot of space and does not fit as I wanted.

This is the report, and the way I want it to look:

rolopezteteruk_1-1661281777564.png

And this is the dashboard:

rolopezteteruk_2-1661281858510.png

 

could you help me please? 

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

HI  @rolopezteteruk ,

There is no option to resize images directly. You need to define the properties with JSON code and upload the theme file into dashboard.

{
"imageHeight": {
          "type": [
            "numeric"
          ],
          "displayName": [
            "Image height"
          ],
          "description": [
            "The height of images in pixels"
          ]
        },
"imageScaling": {
        "imageScalingType": [
          {
            "value": "Normal",
            "displayName": "Normal"
          },
          {
            "value": "Fit",
            "displayName": "Fit"
          },
          {
            "value": "Fill",
            "displayName": "Fill"
          }
        ]
    }
}


Reference:

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format

https://community.powerbi.com/t5/Desktop/Dashboard-Background-Image-Size/m-p/924565 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

HI  @rolopezteteruk ,

There is no option to resize images directly. You need to define the properties with JSON code and upload the theme file into dashboard.

{
"imageHeight": {
          "type": [
            "numeric"
          ],
          "displayName": [
            "Image height"
          ],
          "description": [
            "The height of images in pixels"
          ]
        },
"imageScaling": {
        "imageScalingType": [
          {
            "value": "Normal",
            "displayName": "Normal"
          },
          {
            "value": "Fit",
            "displayName": "Fit"
          },
          {
            "value": "Fill",
            "displayName": "Fill"
          }
        ]
    }
}


Reference:

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format

https://community.powerbi.com/t5/Desktop/Dashboard-Background-Image-Size/m-p/924565 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Lucien

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.