cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IfYouBuildIt
Frequent Visitor

Revert all Visuals to Default for .JSON Theme

I am writing a .JSON Theme, and want to be able to reset all Visuals in a .PBIX file to Default so the theme can be applied to existing reports.

 

Is anything like this through the GUI, or code, available?

2 REPLIES 2
RicoZhou
Community Support
Community Support

Hi @IfYouBuildIt 

You can create a .JSON Theme file with the default configurations for all visuals. 

For reference:

Use report themes in Power BI Desktop

Custom report theme to control the default

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

@ric I have written a .json file that changes default attributes of visuals (and other elements) in my report. The problem is that applying the .json theme does not override previous (manual) changes that have been made to those objects. So, if you have a report that was built, then you apply the .json theme, very few things actually change.

 

I need a way (either manually in the UI, or a line of code) that can reset all elements of the report to their default.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors