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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PiPower
Frequent Visitor

Random color in column chart

How can I set that each column chart gets a random different color as the way the pie chart do? I am familiar that is it possible to set color manually on each column and that you can set the color based on the value, but that is not what I want. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

did you set a "Legend"?

 

Random Colour.PNG

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @PiPower ,

 

I think conditional formatting feature will suitable for your requirement.
You can add a calculated field to generate random color codes based on current category, then enable conditional formatting feature to color format based on that field value.(color name or hex number)

Conditional formatting in tables

 

Regards,

Xiaoxin Sheng

Conditional formatting only works on tables? This could easily have been solved if there was an option for setting random colors in this section Smiley Happy 

 format.PNG

 

I want a result like this: 

yes.PNG

And not like this:

no.PNG

Anonymous
Not applicable

Hi,

 

did you set a "Legend"?

 

Random Colour.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors