Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a general blue theme selected for my report. HOwever, I have one visual that I would like it to be in different color, this case red and add different shades of red as the months progress. Is there a way I can just change the theme of the one visual? Otherwise I'll have to manually go in to change to different shades of red. It defaulted to a blue color when 4/1/21 was added. See pic below.
Solved! Go to Solution.
You should be able to use conditional formatting to override the theme colors.
First, we will need a measure that read a value from the dates table to determine what shade of red to use. In mine I use the month number (1-12) to pick the shade of red.
Bar Format =
VAR _Month = MAX(Dates[Month Number])
RETURN
SWITCH(
_Month,
1,"#ff0000",
2,"#ffa07a",
3,"#f08080",
4,"#fa8072",
5,"#e9967a",
6,"#ff6347",
7,"#cd5c5c",
8,"#ff4500",
9,"#dc143c",
10,"#b22222",
11,"#8b0000",
12,"#800000"
)
It is important to make sure the format of this measure is set to Text.
Then, it the data color for the bar chart go to conditional formatting.
And set the formatting to Format By: Field Value, Based on field: Bar Format. 'Bar Format' is the name of the measure we created with the color switches.
And here is the result:
You should be able to use conditional formatting to override the theme colors.
First, we will need a measure that read a value from the dates table to determine what shade of red to use. In mine I use the month number (1-12) to pick the shade of red.
Bar Format =
VAR _Month = MAX(Dates[Month Number])
RETURN
SWITCH(
_Month,
1,"#ff0000",
2,"#ffa07a",
3,"#f08080",
4,"#fa8072",
5,"#e9967a",
6,"#ff6347",
7,"#cd5c5c",
8,"#ff4500",
9,"#dc143c",
10,"#b22222",
11,"#8b0000",
12,"#800000"
)
It is important to make sure the format of this measure is set to Text.
Then, it the data color for the bar chart go to conditional formatting.
And set the formatting to Format By: Field Value, Based on field: Bar Format. 'Bar Format' is the name of the measure we created with the color switches.
And here is the result:
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |