Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Linear Gauge Color in Straight table

Hi All,

I have a linear gauge in a straight table and the requirement is:

  1. have a single segment
  2. change the segment color based on an expression

The same expression is used in a text field and the colours work well but for the gauge chart the segments show only one color for each line.

The Expression is somewhat like:

=if(Sum(PASS)/(Sum(PASS)+Sum(FAIL))  > 0.85, RGB(0,128,0), RGB(255,0,0))

Please suggest if it's even possible to achieve this?03-10-2014 12-05-50.jpg

03-10-2014 12-09-44.jpg

1 Solution

Accepted Solutions
Not applicable
Author

color not recalculated for your dimention (like using $() ).

just use background color of table cell(expression) and transperent gauge

View solution in original post

10 Replies
Not applicable
Author

color not recalculated for your dimention (like using $() ).

just use background color of table cell(expression) and transperent gauge

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Not sure what you are trying to achieve. Each segment can have a separate colour, but with a single segment, the bar can only display one colour.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Gysbert_Wassenaar

See attached qvw for another option.


talk is cheap, supply exceeds demand
Not applicable
Author

LOL nice try =)))

Not applicable
Author

Thanks Gysbert,

I am trying to achieve the same with a Gauge Chart but I guess the color calculation does not work in the same way as it does not allow calculating colors based on the dimension but the color calculation does not consider the dimension.

@ Jonathan: I am only trying to get a single color but based on the expression change the color for the gauge. Please refer to the attached image, the text field shows green where the % is greater than 85 else red. I want the same for the Gauge color:

03-10-2014 13-39-10.jpg

Not applicable
Author

Sem,

I guess your solution works as the workaround and I can live with that

Not applicable
Author

glad to help

b_garside
Partner - Specialist
Partner - Specialist

I've been trying to do the exact same thing. Not sure I understand "just use background color of table cell(expression) and transparent gauge"   any ideas how making the background transparent will help?

Wish there was a sample of this

jim_chan
Specialist
Specialist

hi there, where can i find this icon?    '█' ???

Rgds

Jim