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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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