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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yashwant101
Helper II
Helper II

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.