Forum Discussion
How to apply toggle button for JSON themes switch?
Hi Anonymous ,
Check this options:
https://www.youtube.com/watch?v=OdavfckuNwc
https://blog.powp.co/having-a-light-and-dark-version-of-your-power-bi-reports-56fd3ece08e
- Anonymous2 years agoNot applicable
Hi MFelix ,
The references you shared are manual based approach and the youtube video also a manual approach and works for a single page. But my requirement was different, where I have the JSON theme files and I'm looking for a option where i can have two json files being switched using a toggle button cause that would impact for the whole dashboard irrespective of pages.
Please suggest me on this.
- MFelix2 years agoSuper User
That option is not available currently on Power BI, you can only change a theme of a report in edit mode, since the users don't have access to the edit mode they cannot do it with a button.
You need to have both themes "defined" on the visualizations and pages and then the users can select them.
- Anonymous2 years agoNot applicable
Can you elaborate what exactly this line "You need to have both themes "defined" on the visualizations and pages and then the users can select them." mean?
what's the way to define both the themes at a time on the visualizations so that users can select?