Customize Current Theme From Power BI Desktop Without Using JSON - Part One

Overview

 
In this article, we will talk about how we can customize the current Power BI report theme in Power BI. Power BI launched this amazing feature in its December 2019 update.
 
For detailed information about this new feature, I have divided this article into two parts.
 
During the first part of the series we will be talking about the few properties only. In the second part of the article, we will talk about the other properties in brief.
 
Below is the information about the links for the articles.
Now, let’s explore how we can customize the current report theme.
 

Practice Files

 
For your practice, I have uploaded the sample Power BI file to the GitHub repository. You can directly download the file from there.
 
Prerequisite
  • Make sure that you have installed Power BI Desktop with the latest version of December 2019.
  • Enable Preview feature.
To enable preview features, please follow the below steps,
 
Go to File, From Options and Settings, select Options.

Customize Current Theme From Power BI Desktop Without Using JSON
 
From Preview features, select “Customize current theme”.

Customize Current Theme From Power BI Desktop Without Using JSON
 
Restart the Power BI Desktop.
 

Overview of Sample Power BI Report

 
Below is the screen for the Power BI report which we have developed. The report has one bar chart, one line chart, table, donut chart, slicer and funnel chart.

Customize Current Theme From Power BI Desktop Without Using JSON
 
We haven’t defined any report theme at this moment.
 
Now, let’s define theme for the current report.
 
Step 1
 
Go to View Menu, select Customize current theme
 
Customize Current Theme From Power BI Desktop Without Using JSON
 
Step 2
 
This will open the following pop up.
 
The theme pop up is divided to 5 different options.
 
Customize Current Theme From Power BI Desktop Without Using JSON
  1. Name and colors
  2. Text
  3. Visuals
  4. Page
  5. Filter pane
Now, let’s explore each of the option in brief.
 
Name and colors
 
This property has two sub options,
  • Name and colors
  • Advanced
Customize Current Theme From Power BI Desktop Without Using JSON 
Name and colors
 
Name
 
First, we need to provide the name of the theme. Let’s say we have created theme name as “SampleTheme”.
 
We can set,
  • Theme colors
  • Sentiment colors
  • Divergent colors
Customize Current Theme From Power BI Desktop Without Using JSON
 
From the options.
 
Theme colors
 
We can set eight(8) different theme colors considering different data colors used for different charts, lines etc.
 
Sentiment colors
 
This can be used to indicate KPI visual as well as to represent positive and negative number for waterfall chart and to show positive, neutral and negative results.
 
Divergent colors
 
This can be used to represent conditional formatting to represent where data point falls in a range.
 
Now, let’s change some theme colors and check the results.
 
We have changed the first three colors.
 
Customize Current Theme From Power BI Desktop Without Using JSON
 
Click on apply and save.
 
Here is the output.
 
Customize Current Theme From Power BI Desktop Without Using JSON
 
Advanced
 
When we look the Advanced property, we have following options.
  • First-level elements
  • Second-level elements
  • Third -level elements
  • Fourth-level elements
  • Background elements
  • Secondary background elements
Customize Current Theme From Power BI Desktop Without Using JSON
 
Purpose
 
The main purpose of these options is to choose colors for different elements in our visuals like,
  • Axis Gridline
  • Textbox font
  • First level fonts etc.
Now, let’s apply few of the categories and check the result.
 
Customize Current Theme From Power BI Desktop Without Using JSON
 
Now, let’s change the color for the first - level elements and second- level elements.
 
Click on Apply and save.
 
Below is the result.
 
Customize Current Theme From Power BI Desktop Without Using JSON
 
As shown in the above screen, first-level elements color has been applied to table visual.
 
Second-level elements color has been applied to the different legends, data tooltip highlights, slicers etc.
 
Also, if we hover on any line charts, gridlines are also changed with the second-level elements.
 

Conclusion

 
This is how we can easily create the theme for the current report. Isn’t it amazing?
 
Stay connected with me for more amazing articles!!
 
Happy reporting!!