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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
amty63
Helper III
Helper III

set background image for all the pages in a report (PBIX) file at one go.

I have 30 pages in the report. Need to set background image for all the pages. Is there any solution to do in one go.

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @amty63 ,

 

You can customize Power BI Theme, see more details: Custom Power BI Themes: Page Background Images , Use Report Themes in Power BI Desktop.

77.png

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

View solution in original post

10 REPLIES 10
martinitram69
Regular Visitor

The syntax for the background in the json theme file is:

 

the syntax for the background is:

                "outspace": [

                    {

                        "image": {

                            "name": "yourimagename",

                            "scaling": "Fit",

							"url": "data:image/jpeg;base64,lotsoflettersandnumbers"

                        },

                        "transparency": 50

                    }

                ],

Use this brilliant site to encode your image: https://www.base64-image.de/

Click 'copy image' and paste it in the 'lotsoflettersandnumbers'

 

Anonymous
Not applicable

@Tahreem24, it's not just Power BI that can't access your image at:

C:\A folder\Another Folder\ExampleBackground.png  

 

Maybe try a web-based location instead, and put the full path to the image in the url element?

 

There's a page here that offers a similar solution to the above, by the way.

v-xicai
Community Support
Community Support

Hi @amty63 ,

 

You can customize Power BI Theme, see more details: Custom Power BI Themes: Page Background Images , Use Report Themes in Power BI Desktop.

77.png

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

Anonymous
Not applicable

The link for this solution goes to a page that has been taken down. 

Could someone please post the solution here if they know how to do it. 

Hi Marzipanly,

 

Yes, you can go to view option in Power BI desktop and customise themes or use theme gallery as well. I am attaching the screenshot.

amty63_0-1595505534537.png

Hope this post helps you.

Anonymous
Not applicable

@amty63 

 

Thanks for the reply. Using Customize themes I can change the colour of the background on all pages, but I can't add an image. It As far as I can tell, if you want to change the image background then you need to edit the theme's .json file, but I can't figure out the right format to use for specifying the image. 

 

Marzipanly_0-1600689523769.png

 

Marzipanly_1-1600689545594.png

 

Tahreem24
Super User
Super User

@amty63 ,

 

Give a try by importing JSON file which include background image in PBIX file.

 

Don't forget to hit Thumbs up and accept this as a solution if you find it helpful! 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@amty63 ,

Below is the JSON code I got for background image:

{
               "name": "Page Background Image",
               "visualStyles": {
                        "page": {
                              "*": {
                                      "background": [
                                               {
                                                  "image": {
                                                         "name": "Background",
                                                         "scaling": "Fit",
                                                         "url": "xxxxx"
                                                },
                                                "transparency": 0
                                       }
                                  ]
                           }
                    }
           }
}

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Thank you so much, it works. Sorry, that the autor of this post didn't chacked your answer as Solution.

Anonymous
Not applicable

@Tahreem24 

 

What format/structure do we need to use for the URL and name of the image? Could you please complete with a full example of an image on one's local drive. 

 

I've tried the following but it doesn't work: 

 

{
               "name": "Page Background Image",
               "visualStyles": {
                        "page": {
                              "*": {
                                      "background": [
                                               {
                                                  "image": {
                                                         "name": "ExampleBackground.png",
                                                         "scaling": "Fit",
                                                         "url": "C:\A folder\Another Folder\"
                                                },
                                                "transparency": 0
                                       }
                                  ]
                           }
                    }
           }
}

 

Thanks

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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