Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to use an SVG image as the background image for my PBI report. I would like to include the image in the JSON theme file so when I create a new page in the report, it's automatically added.
What I did: I first converted the SVG image to JSON, which produced the below code. When I tried uploading the JSON file to Power BI, I got an error message. What am I doing wrong?
SVG image converted to JSON (using Aspose):
That code inserted into JSON code:
Error message I receive from Power BI after importing the JSON file:
Solved! Go to Solution.
I figured this out. I was making the mistake of converting the SVG image to JSON instead of base64. I didn't use an SVG URL, just an SVG image and didn't run into any issues when I imported the theme.
Steps I took:
- Convert the SVG image to base64 (Data URI)
- insert that code into the JSON code
I figured this out. I was making the mistake of converting the SVG image to JSON instead of base64. I didn't use an SVG URL, just an SVG image and didn't run into any issues when I imported the theme.
Steps I took:
- Convert the SVG image to base64 (Data URI)
- insert that code into the JSON code
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
5 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |