Forum Discussion
Theme elements complete list
- 2 years ago
Hi ToddChitt
Please find the MS Documentation
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#report-theme-json-file-format
If your requirement is solved, please make sure to MARK AS SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.
Thanks
Pijush
www.MyAccountingTricks.com
https://www.youtube.com/MyAccountingTricks - 2 years ago
Have a look at
bcdobbs PijushRoy thank you both for your suggestions, good content and links.
On a somewhat related topic: When I search the reportThemeSchema.json file for "Matrix" nothing comes up. However, I did come accross "pivotTable" as one of the visual elements. I'm sort of assuming the two are synonomous. Why call it one thing in the desktop design user interface, but use a totally different name for it in the theme file? That plus the fact that my Visual Studio Code does not behave as the documentation states it should here: Use report themes in Power BI Desktop - Power BI | Microsoft Learn in regard to Find Visual Properties to set is going to make this a challenging exercise.
Thanks again for the tips. I'll slug through it.
Do you mean the json isn't formatted in vs code? Should just be a case of right clicking and then "format document".
As to the naming I'm afraid I don't know.
- ToddChitt2 years agoSuper User
Hello bcdobbs and thanks for the response.
My JSON document formats just fine in Visual Studio Code. The issue is centered around VS Code and pulling up the auto-complete options from the schema. The documentation shows this snippet:
When I try the same thing, however, the list of auto-complete options is made up of elements in the preceeding JSON, not from the schema:
I have traced the difference down to the fact that I am trying to modify the dropShadow of ALL (*) visualStyles, not just "azureMaps" as shown in the documentation.
My personal opinion is that the user experience has some room for improvement.
Again, thank you for the links.
- satkin22 years agoAdvocate I
I'm facing the same challenge. Did you manage to get the auto-complete to work as described, or did you have to trawl through the schema file for every element you wanted to set? Thanks.
- ToddChitt2 years agoSuper User
I gave up on the auto-complete. I simply had my JSON Theme file open side-by-side with the schema file.