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.
Hi,
I have read through some tutorials where it is shown how to set page wallpaper and background via Power BI theme json editing.
Example here:
I thought to try and add a company logo to the theme file so it appears on the top of every single page.
It aparently can be done via setting visualStyles -> page -> background -> url but this does not seem to work for me.
I am using both background (canvas) and outspace (wallpaper) setting for the theme:
Can anyone suggest a soluton to this?
Thanks
Evan
Solved! Go to Solution.
Hi @EBGAL
After testing, If you want to change the size of the image, you can only change the size of the canvas, but currently you do not support using JSON to change the size of the canvas.
You can refer to the following links.
Solved: Change default page dimensions with .json theme. - Microsoft Power BI Community
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @EBGAL
Try to translate the image to base64 file, use a free online converter to convert the images to Base64 files.
Then add the code.
The following website can translate the image to base64.
Base64 Image Encoder (base64-image.de)
And you can refer to the following video.
Power Bi : Set image as permanent background for all pages - Bing video
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-xinruzhu-msft ,
I can set a picture, but what I am after is to have company logo appear on the top right of every single page report developer creates.
If I use logo image it appears in the middle or covers whole canvas area, not keeping to the corner.
Thanks
Hi @EBGAL
You need to set the properties of the image visual by json, cannot directly add it to the background.
You can refer to the following link.
Add formatting options to a Power BI custom visual - Power BI | Microsoft Learn
JSON theme legend position - Microsoft Power BI Community
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-xinruzhu-msft ,
It is not a visual that I am talking about but a background image.
I want company logo appear as a background image in top right regardless of page size.
Currently, I can create an image with company logo to match the size of the standard canvas and then use it as a background image via Base64 url. However, in case developer uses custom canvas size the image goes distorted.
In other words, is there a way to set coordinates to background image, as it currently only allows Fit, Fill and Normal?
Thanks
Hi @EBGAL
After testing, If you want to change the size of the image, you can only change the size of the canvas, but currently you do not support using JSON to change the size of the canvas.
You can refer to the following links.
Solved: Change default page dimensions with .json theme. - Microsoft Power BI Community
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
64 | |
63 |
User | Count |
---|---|
140 | |
105 | |
102 | |
81 | |
67 |