Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
christian77
Partner - Specialist
Partner - Specialist

DYNAMIC COLORS

Hi:

 

I want to set colors dynamically according to my
product. Each product has its color.

Does anybody know how to do that?

Example attached.

Colores.jpg

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

4 Replies
giakoum
Partner - Master II
Partner - Master II

see attached

christian77
Partner - Specialist
Partner - Specialist
Author

Hi:

Thanks. Could we do it with only one field?

Anyway is good.

giakoum
Partner - Master II
Partner - Master II

I tried to do it with one field but it did not work out

christian77
Partner - Specialist
Partner - Specialist
Author

Hi,

Product           SubProduct                  Red        Green   Blue

A                            A1                          0             0             255

A                            A2                          100         100         255

A                            A3                          200         200         255

In this case, when I see the thing by Product: what color to place? The Red and Green
fields are null(). RGB function interprets that as 0, so the color is 0,0,255, which
is exactly what I wanted.

Also, having the 3 fields null() or empty will result in 0,0,0; that means black.

Set your SubProducts in the same range of colors, like above, and it’ll show the generic one when seeing it by Product.