Forum Discussion
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:
And this is the dashboard:
could you help me please?
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
1 Reply
- v-luwang-msftCommunity 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