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
mypowerbi1
Helper III
Helper III

choose theme button

Hi,

I need to change the theme of report (light to dark or dark to light) by clicking on a button. This is similar to Power BI embedded analytics playground's choose theme button in the below link: 

https://playground.powerbi.com/en-us/showcases-gallery/personalize-report-design 

So the user can choose dark or light themes by just clicking the button. 

Any suggestion, how to achieve this? 

 

Thanks

1 ACCEPTED SOLUTION
mypowerbi1
Helper III
Helper III

This became possible outside Power BI in the embedded portal using javascript. 

View solution in original post

6 REPLIES 6
mypowerbi1
Helper III
Helper III

This became possible outside Power BI in the embedded portal using javascript. 

Hi @mypowerbi1,

 

Could you provide a little more detail on your actual solution?

It may help others that come across this post.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x
mypowerbi1
Helper III
Helper III

Hi @PBICommunity , 

I am still looking for the solution. the reply above by @mohammedadnant doesn't help.

Please suggest if we can switch 2 different themes for single power bi report on click or using button.

 

Thanks

As far as I know, it is not currently possible without a lot of work with bookmarks to fake it. 

Please vote for this idea.

https://ideas.powerbi.com/ideas/idea/?ideaid=781638b4-9b86-eb11-8ced-281878e6452b

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x
mohammedadnant
Impactful Individual
Impactful Individual

Hi @mypowerbi1 

 

You can check this link for this

https://community.powerbi.com/t5/Desktop/Toggle-Button-to-switch-between-two-themes/m-p/1788026#M698...

 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18

thanks @mohammedadnant  for your comment. This just gives to choose color options using chicklet slicer. However, I need to switch in beteen two different theme based on the entire JSON file which include details about most of the visuals and their formatting.

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.