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
mmjabr
New Member

Use different layout background image for each page in one report (PBIX) using JSON theme

I am trying to use different layout background images for each page in one report (PBIX) using JSON theme.
I have a 3-page report and I have two themes (light/dark) and I am using layout background images for each page and I need to be able to change the background images for each page in the report based on theme selection

 

I tried changing the * to "page name" after the page tag and duplicate this part for each page, but it did not work 

 

 

"page": {
            "*": {
                "outspace": [
                    {
                        "color": {
                            "solid": {
                                "color": "#3a3a3a"
                            }
                        }
                    }
                ],
                "background": [
                    {
                        "image": {
                            "name": "Background",
                            "scaling": "Fit",
                            "url": "base64 image string"
                        },
                        "transparency": 0
                    }
                ]
            }
        }

 

 

Thanks

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @mmjabr ,

Please check.

If you're using one of our original themes, the "Classic" theme, or a custom theme that you imported on top of one of these, the text section of the theme dialog box isn't available for configuring.

Built-in themes that are affected by this limitation include the following themes:

  • Classic
  • City park
  • Classroom
  • Color blind safe
  • Electric
  • High contrast
  • Sunset
  • Twilight

If you're using one of the affected themes and you don't need to modify the text settings, you can safely use the other tabs of the dialog box with no issues. However, if you want to use the text classes with one of the affected themes, you have a couple options:

  • The quickest and easiest way to enable the text classes is to select the Default theme options.
  • If you want to keep your current custom theme, to enable the text tab:
    1. Export your current theme.
    2. Select the default theme.
    3. Import the custom theme you exported in the first step.

The text in your report will look different, but you will be able to access the text tab in the theme dialog box.

 

Please refer to the following document for further information.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#introduction-to-repor...

 

Best Regards

Community Support Team _ Polly

 

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

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.