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
Gladiator909
Helper I
Helper I

Combo Charts Legend Color Not Changing based on Filter

Hello Everyone,

 

I seemed to be having an issue with the color of the legend on a combo chart.

 

Here is what I have in my table:

YearMoneyCollectedProjected
2019$11217
2019$21419
2019$31520
2020$11217
2020$24550
2020$36772
2021$116
2021$249
2021$35459

 

Here is what I have on my canvas, a combo chart + a filter:

Gladiator909_5-1666123154439.png

 

 

I used conditional formatting to color the chart according to what the user selects. In the example above, if the user selects $2 the chart should be "Green". This is working great. 

 

However, the color of the legend representing the bar chart is still blue on the top left corner. 

 

Anyone knows how to get the color of the legend to change as well?

 

PS: this is conditional formatting:

Gladiator909_6-1666123220625.png

Thank you, any help would be greatly appreciated.

 

3 REPLIES 3
v-xiaosun-msft
Community Support
Community Support

Hi @Gladiator909 ,

 

According to your description, I dia a sample and did not reproduce the phenomenon. Can you provide your specific steps? Maybe your desktop version isn't up to date, try updating to see if the problem still assists.

And you can refer to the following link.

Solved: Change the color of the chart based on the objecti... - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ xiaosun

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

Hi there,

 

Thank you for your reply.

 

Interesting that you were not able to reproduce it. Here are my steps:

 

Data Table:

Gladiator909_0-1666186533025.png

 

 

(1) Creating the Combo Chart:

- I selected "Line and clustered column chart"

- Here is the fields section:

Gladiator909_1-1666186619130.png

When I do the above, I end up with this visual:

Gladiator909_2-1666186680206.png

 

(2) I create a filter for the money, by selecting filter and using the "Denom" field from my table as such:

Gladiator909_3-1666186746281.png

 

(3) This is where I use conditional formatting to set the color of my chart depending on what the user is selecting. This is done as such:

Gladiator909_4-1666186889845.png

 

(4) The filter works great but the color of the legend still doesnt change accordingly. It looks like its defaulted to the blue color at the beginning.

 

I tried the same thing on  a newer version of PowerBI and same thing.

 

Thank you for all the help

 

Hello @Gladiator909

 

Did you find a solution to this problem? I am running into the same issue.

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.