Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I have a dimension based on the formula
IF(len(trim([CONTAINER]))=0,'OFF-LINE','ON-LINE') as OFF_ON_LINE
The expression for the above dimension is count(distinct case#).
How can I color the cells in straight table such a way that for OFFLINE below 70 is red and above 70 is green, and for ONLINE below 110 is red and above 110 is green?
Hi,
did you try using the background color expression section of the dimension ?
using an expression like this:
=if(OFF_ON_LINE='OFF-LINE',
if(count(distinct case#)<70,
red(), if( count(distinct case#)>70, green())),
if(count(distinct case#)<110, red(), if(count(distinct case#)>110, green())))
Hi,
did you try using the background color expression section of the dimension ?
using an expression like this:
=if(OFF_ON_LINE='OFF-LINE',
if(count(distinct case#)<70,
red(), if( count(distinct case#)>70, green())),
if(count(distinct case#)<110, red(), if(count(distinct case#)>110, green())))
May be this?
= IF(Count(DISTINCT {< OFF_ON_LINE = {'OFF-LINE'} >} Case#) < 70, Red(),
Count(DISTINCT {< OFF_ON_LINE = {'OFF-LINE'} >} Case#) > 70, Green(),
Count(DISTINCT {< OFF_ON_LINE = {'ON-LINE'} >} Case#) < 110, Red(),
Count(DISTINCT {< OFF_ON_LINE = {'ON-LINE'} >} Case#) > 110, Green())
Converts every cell into red color.
It says error in expression.
just check the expression (parentheses...) this is how you color your cells
Can you share your expression you are using and if possible share your qvw file to work on?
Oops my bad, forgot that case# is case sensitive. It works, thanks Youssef.
Thanks for your response Nagaraju, the answer provided by Youssef above worked.
You're welcome good luck