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

Visual Colours in Straight Table Chart Expression

Good Morning. 

I have a Straight table with expressions showing ink stations by machine and the colours in the station. There are over 5000 colours to choose from. I wish to have a colour visually in the cell not necessarily by that colour ie if it says yellow does have to be yellow. was thinking of a potential table with colour RGB's which would link to text and basically apply that colour to cell. I have original output below then a macked colour applied. 

ItemMaterialStation 1Station 2
T2338SUB-W-LCS 65UV YELLOW..PROCESS YELLOW
14583SUB-C-LL410 35280 CProcess Black
T2337SUB-W-LL247 47UV YELLOW..PROCESS YELLOW
T2336SUB-W-DL247 38UV YELLOW..PROCESS YELLOW
51776SUB-W-DL247 38UV YELLOW..PROCESS YELLOW
52514SUB-W-DL247 38UV YELLOW..PROCESS YELLOW
14581SUB-C-LL410 35280 CProcess Black
52625SUB-W-DL247 38UV YELLOW..PROCESS YELLOW
51572SUB-W-PED247 38108 C-

 Sort of output.

g.png

Thanks in advance

Labels (5)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Description of definition? Or to rephrase the question: are you talking about your data model or the chart expression property Text color?

 

If you have the RGB value in a field called MyColor then it's simply =MyColour. Try it as a normal expression first.

If it doesn't show a value then it's not unique for the combination of dimension values that make up the row of the straight table. You could try something like =Max(MyColor) in that case.


talk is cheap, supply exceeds demand

View solution in original post

10 Replies
Gysbert_Wassenaar

What's your question?

talk is cheap, supply exceeds demand
bnelson111
Creator
Creator
Author

Need to create a lookup table with text and a RGB reference for all 5000 possible colours.

Gysbert_Wassenaar

What's stopping you from doing that?


talk is cheap, supply exceeds demand
bnelson111
Creator
Creator
Author

Can't work out how to have the RGB code applied to the cell? I know how to link on if statement see picture below, but don't know how to write a statement to look at a table with 5000 options and apply a RGB which is set for each of the 5000 options to the cell.

 

g.png

Gysbert_Wassenaar

Have a look at this discussion where they're having fun creating fields with rgb values and mapping them to products:

https://community.qlik.com/t5/QlikView-Documents/Colors-in-Qlik/ta-p/1484386


talk is cheap, supply exceeds demand
bnelson111
Creator
Creator
Author

Still stuck in linking them to the Colour text description.

Gysbert_Wassenaar

Description of definition? Or to rephrase the question: are you talking about your data model or the chart expression property Text color?

 

If you have the RGB value in a field called MyColor then it's simply =MyColour. Try it as a normal expression first.

If it doesn't show a value then it's not unique for the combination of dimension values that make up the row of the straight table. You could try something like =Max(MyColor) in that case.


talk is cheap, supply exceeds demand
bnelson111
Creator
Creator
Author

Making progress, have a inline table loading but cant get RGB(230,0,200) to work from inline table.

bnelson111
Creator
Creator
Author

After reading post cant work out how to generate ColourIndex number from RGB.