Skip to main content

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!
cancel
Showing results for 
Search instead for 
Did you mean: 
BriceOne
Contributor II
Contributor II

Custom colors by dimension

Hello everyone,

I'm new to Qliksense and I'm stuck. To make it simple, I created my chart and defined the colors by an expression, except that I don't know how to map a color to a label.

i.e., green is A, blue is B

=If(BRANCHE='SANTE' and STD_DSN <>'CCN', 'green',if(BRANCHE='SANTE' and STD_DSN='CCN','lightgreen',
If(BRANCHE='PREVOYANCE' and STD_DSN <>'CCN','blue',If(BRANCHE='PREVOYANCE' and STD_DSN='CCN','lightblue'
))))Capture.PNG

Labels (2)
2 Solutions

Accepted Solutions
chris_djih
Creator III
Creator III

So if i get it correctly you just want to have custom colors on your dimension? 
you could go to the master dimension (or create a new one)  of this Dim and set the colors there:

grafik.png

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.

View solution in original post

BriceOne
Contributor II
Contributor II
Author

Hi Chris,

Sorry for the delay. Thats exactelly what I needed. Thank you so much!!

 

 

View solution in original post

4 Replies
chris_djih
Creator III
Creator III

What do you mean by 'map a color to a label' ?
Do you looking for a kind of legend where you can say: everything that is green belongs to group A?

please provide some more details or examples of what is your goal.

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.
BriceOne
Contributor II
Contributor II
Author

Hi Chris, thanks for your reply.

If I dont use the expression to color my graphic, that its what I got (I have the legend like you can see at the bottom). 

BriceOne_0-1643636513415.png

 

chris_djih
Creator III
Creator III

So if i get it correctly you just want to have custom colors on your dimension? 
you could go to the master dimension (or create a new one)  of this Dim and set the colors there:

grafik.png

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.
BriceOne
Contributor II
Contributor II
Author

Hi Chris,

Sorry for the delay. Thats exactelly what I needed. Thank you so much!!