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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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