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.
we have 30 pages in the report. Need to set different background image for each page. Also let me know how to use the image location through local drive. currently i am using base64.
{
"name": "Page Background Image",
"visualStyles": {
"page": {
"*": {
"background": [
{
"image": {
"name": "Background",
"scaling": "Fit",
"url": "data:image/jpeg;base64"
},
"transparency": 0
}
]
}
}
}
}
Hi @amty63 ,
The page background color belongs to layout section of Power BI Desktop. After testing, I don't think it could add the section code into basic theme file. Maybe you could change the color manually in Desktop,like below.
For adding image trough local Onedrive, you could replace <Base64 string goes here> with your Base64 encoded string. I use Base64 Image Encoder to change images to base64. You could have a try.
{
"name": "Page Background Image",
"visualStyles": {
"page": {
"*": {
"background": [
{
"image": {
"name": "Background",
"scaling": "Fit",
"url": "<Base64 string goes here>"
},
"transparency": 0
}
]
}
}
}
}
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I know the manually option but as I have 30 pages in the report, Need to set same background image for 20 pages and different for rest of the pages. Can't we set for 20 pages at one time.
can we place local drive path into json code instead of base64 code.
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |