Skip to main content
Announcements
Join us on Sept. 17 to hear how our new GenAI Assistant empowers data professionals: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
clarachac
Contributor III
Contributor III

Personalized colors by dimension in a bar chart

Hello,

I have a bar chart with 2 dimensions (year, product) and 1 measure.
I would like to personalize the color of the bars by product : 

clarachac_0-1710950752206.png
But if I put the color by expression, the legend disappears :

clarachac_1-1710950829774.png

If(REGROUPEMENT='Produit 1',rgb(235,120,0),
If(REGROUPEMENT='Produit 2',rgb(255,205,0),
If(REGROUPEMENT='Produit 3',rgb(0,120,154),
rgb(0,179,136))))

How can I have the right colors AND the legend?

 

 

Labels (5)
1 Solution

Accepted Solutions
MatheusC
Specialist
Specialist

Hi, @clarachac 

Create a master dimension
1- Master items -> Create new -> create your master dimension here
2 - Edit your master dimension, and then in Value colors define the colors by the dimension values ​​as mentioned As shown in the screenshot below

MatheusC_0-1710955161289.png

Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

7 Replies
Clement15
Partner - Creator III
Partner - Creator III

Hello, by creating a master measure you can choose the color of your dimensions. You then select the color by size, this should meet your expectations.

clarachac
Contributor III
Contributor III
Author

I want the color by product, how can I create a master measure of Product knowing it's a dimension, I don't understand.

Clement15
Partner - Creator III
Partner - Creator III

MatheusC
Specialist
Specialist

Hi, @clarachac 

Create a master dimension
1- Master items -> Create new -> create your master dimension here
2 - Edit your master dimension, and then in Value colors define the colors by the dimension values ​​as mentioned As shown in the screenshot below

MatheusC_0-1710955161289.png

Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
clarachac
Contributor III
Contributor III
Author

Hello, @MatheusC 

clarachac_1-1711012013396.png

 

I don't have the 'value colors' option 😞

 

Clement15
Partner - Creator III
Partner - Creator III

The option will be available after creation, you can add the colors in editing

clarachac
Contributor III
Contributor III
Author

Ah yess it works! Thank you very much @Clement15 @MatheusC