Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
yashwant101
Helper III
Helper III

Dynamic Color for Multi-Bar Bar Chart

Hi all,

 

I have a use case where I have 2 different categories for each x axis value in a bar chart:

yashwant101_0-1712217338607.png

Is there a way to keep different color combination for Bangaluru and a different one for Chennai.

 

Is it possible to do it

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @yashwant101 ,

I agree with what @Uzi2019 said!
But I can give you a workaround.
Here is my sample data:

vjunyantmsft_0-1712731920061.png

Then I use these DAXs to create two measures:

Bangaluru = SUMX(FILTER('Table', LEFT('Table'[Name], 9) = "Bangaluru"), 'Table'[Value])
Chennai = SUMX(FILTER('Table', LEFT('Table'[Name], 7) = "Chennai"), 'Table'[Value])

Then create the Clustered Column Chart:

vjunyantmsft_2-1712732069851.png

 

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @yashwant101 ,

I agree with what @Uzi2019 said!
But I can give you a workaround.
Here is my sample data:

vjunyantmsft_0-1712731920061.png

Then I use these DAXs to create two measures:

Bangaluru = SUMX(FILTER('Table', LEFT('Table'[Name], 9) = "Bangaluru"), 'Table'[Value])
Chennai = SUMX(FILTER('Table', LEFT('Table'[Name], 7) = "Chennai"), 'Table'[Value])

Then create the Clustered Column Chart:

vjunyantmsft_2-1712732069851.png

 

Uzi2019
Super User
Super User

Hi @yashwant101 

Unfortunetly , No . you cant change the color of Bangaluru and Chennai.

there is so such option availabe under column format setting.

 

you can only change the color of you both metrix Transit and inventory.

 

Uzi2019_0-1712218445226.png

 

apart from it there is no such option available.

 

I hope I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors