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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors