Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all
I am using images in a straight table to give me a custom traffic light based on my own images.
The problem I am getting is this column is forcing a row to show even when the rows expressions are zero
Here's the expression:
=(if(($(eYTDActual(1))>0 and $(eYTDBudget(1)) <0) OR ($(eYTDActual(1))<0 and $(eYTDBudget(1)) >0),
if($(eYTDActual(1)) - $(eYTDBudget(1)) >0,Null(),'qmem://Warning/Red_Traffic'),
(if($(eYTDActual(1))=0 OR $(eYTDBudget(1))=0,
if($(eYTDActual(1))-$(eYTDBudget(1))<0,'qmem://Warning/Red_Traffic',Null()),
(if($(eYTDActual(1))>0,
if($(eYTDActual(1))/$(eYTDBudget(1))>=$(vUpperLimit),Null(),
if($(eYTDActual(1))/$(eYTDBudget(1))>=$(vLowerLimit),'qmem://Warning/Amber_Traffic',
if($(eYTDActual(1))/$(eYTDBudget(1))<$(vLowerLimit),'qmem://Warning/Red_Traffic'))),
if($(eYTDBudget(1))/$(eYTDActual(1))>=$(vUpperLimit),Null(),
if($(eYTDBudget(1))/$(eYTDActual(1))>=$(vLowerLimit),'qmem://Warning/Amber_Traffic',
if($(eYTDBudget(1))/$(eYTDActual(1))<$(vLowerLimit),'qmem://Warning/Red_Traffic')))))))
))
So the row will have a Null image and zero in the other expressions but still shows a row?
Please can anyone advise?
Thanks
Dominic
I had left the Null()'s to possiblyt be replaced by a green traffic light - as soon as I removed these along with there respective if statements like:
=(if(($(eYTDActual(1))<=0 AND $(eYTDBudget(1))>=0) OR ($(eYTDActual(1))>=0 AND $(eYTDBudget(1))<=0) ,
if($(eYTDActual(1))-$(eYTDBudget($1))>0,'qmem://Warning/Red_Traffic'),
(if($(eYTDActual(1))>0,
if($(eYTDBudget(1))/$(eYTDActual(1))<$(vLowerLimit),'qmem://Warning/Red_Traffic',
if($(eYTDBudget(1))/$(eYTDActual(1))<=$(vUpperLimit),'qmem://Warning/Amber_Traffic'))
,
if($(eYTDActual(1))/$(eYTDBudget(1))<=$(vLowerLimit),'qmem://Warning/Red_Traffic',
if($(eYTDActual(1))/$(eYTDBudget(1))<=$(vUpperLimit),'qmem://Warning/Amber_Traffic'))
))))
it worked.
Cheers
I had left the Null()'s to possiblyt be replaced by a green traffic light - as soon as I removed these along with there respective if statements like:
=(if(($(eYTDActual(1))<=0 AND $(eYTDBudget(1))>=0) OR ($(eYTDActual(1))>=0 AND $(eYTDBudget(1))<=0) ,
if($(eYTDActual(1))-$(eYTDBudget($1))>0,'qmem://Warning/Red_Traffic'),
(if($(eYTDActual(1))>0,
if($(eYTDBudget(1))/$(eYTDActual(1))<$(vLowerLimit),'qmem://Warning/Red_Traffic',
if($(eYTDBudget(1))/$(eYTDActual(1))<=$(vUpperLimit),'qmem://Warning/Amber_Traffic'))
,
if($(eYTDActual(1))/$(eYTDBudget(1))<=$(vLowerLimit),'qmem://Warning/Red_Traffic',
if($(eYTDActual(1))/$(eYTDBudget(1))<=$(vUpperLimit),'qmem://Warning/Amber_Traffic'))
))))
it worked.
Cheers