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
Anonymous
Not applicable

Changing Colors of my Geographies in a Matrix

Hi,

 

I have a dropdown slicer that allows users to select a "Market" A "Market" consist of 2 geographies, for example a Grocery store chain for the 1st geography and that grocery store chain's competition is the 2nd geography.

 

When the user selects the Market the 100% Stacked Bar Chart displays the % of sales of geography 1 and geography 2 with data colors of the 2 geographies being a different color. My personal theme as a Color 1 of blue and a Color 2 of green. 

 

The problem is when the user selects a total new Market the colors for both geographies change. I want the color to continue to stay the Color 1 blue and Color 2 green.

 

Here is Market 1 selection:

market 1.png

 

And when I change the slicer for Market to another market here is what it shows:

 

market 2.png

 

 

Any way to force the colors to stay the same blue/green?

5 REPLIES 5
dax
Community Support
Community Support

Hi @Anonymous , 

As above mentioned, each stacked bar 's color should be same, I don't know how you design your chart, so if possible, could you please inform me more detailed information (such as your sample data and your expected output and your chart setting or your pbix file)?

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

Hi @dax , My pbix is a large file (143meg). How can I mask the data or prepare the file to share?

dax
Community Support
Community Support

Hi @Anonymous , 

I don't need your real data, you could just use virtual data(simple data) and create chart like your above shown, then upload the pbix file.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

amitchandak
Super User
Super User

@Anonymous , what I observed that it associate a color with each category and then use the same when you filter. Color formatting is also not an option to change as of now.

Greg_Deckler
Super User
Super User

Depends. Maybe use a disconnected table trick so that the actual categories really never change.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.