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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.