Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am using one line chart in my dashboard. In this chart Emp is a dimension and Sum(Sal) is expression.
Now my requirement is, if my line is increasing then it will show as green line and if it will decreasing then Red color.
please help.
You can use the background color option of your expression (click on the plus sign in front of the expression) and use something like this
if(MyExp<Below(MyExp),lightgreen(),lightred())
Where MyExp is the label of your Sum(Sal) expression, if there are spaces in them put it between [] brackets.
Hi
Try like this
Background Color:
= if(PreviousSales - CurrentSales > 0, Green(), Red())
Hi I tried to write
below expression under Background color
=if(Above(Sum(Sal) - Sum(Sal) > 0 , Red(),Green())
but its not working.
You can use the background color option of your expression (click on the plus sign in front of the expression) and use something like this
if(MyExp<Below(MyExp),lightgreen(),lightred())
Where MyExp is the label of your Sum(Sal) expression, if there are spaces in them put it between [] brackets.
use this expression:
if(Sal > Below(Sal) , Red(), Green()))
Hi,
Use
(Sales-Below(Sales)<=0,green(),red())
in background exp, where Sales is the name of the expression.