Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i am trying to use visual cues for background colouring.
I am unable to usebackground colouring in expression as it colours the labels as well.
The expression is something like count(abc)
while the expression for the background colouring is something like
if (count (abc) > count(xyz)
,red
,green )
I am unable to put this condtion in the visual cues, it doesn't work.
Visual cues works only with constants, not with expressions. You can use attribute expression instead, they are much more flexible. Your expression will be somethig like this:
if (count (abc) > count(xyz)
, rgb(255,0,0)
,rgb(0,255,0))
Adjust the colors as you see it fit.
Hi,
In visual clues you can use the expression like this
In Expression attribute you can use the following expression
if (count (abc) > count(xyz), Red(), Green() )
OR
if(Count(abc) > Count(xyz), RGB(255, 0, 0), RGB(0, 255, 0))
Instead of using Visual clues, using the Expression Background attribute is more flexible.
Hope this helps you.
Regards,
Jagan.
Thanks Jagan,
The issue with using expressions is that it colours the Lables (headers) as well.