all groups > sql server reporting services > january 2005 >
You're in the

sql server reporting services

group:

Q:conditional formating


Q:conditional formating JIM.H.
1/31/2005 12:47:02 PM
sql server reporting services: Hello,
I am trying to color negative detail lines with the following.
=iif((Fields!Amt1.Value-Fields!Amt2.Value)<0,"Red","Black")}
It is working if the value is not zero. Some 0.00 values are black but some
of them are red. What is problem?
Jim.
Re: Q:conditional formating prathima.chandramouli NO[at]SPAM gmail.com
1/31/2005 9:15:39 PM
Hi Jim

I think the problem is because you haven't specified the text color for
the result value zero.
You can try specifying the condition as "<=0" if you want the zero
values in red like
=iif((Fields!Amt1.Value-Fields!Amt2.Value)<=0,"Red","Black")

Else if you want zero values in black you can try
=iif((Fields!Amt1.Value-Fields!Amt2.Value)>=0,"Black","Red")

Hope this solves your problem
Regards
Prathima.C






[quoted text, click to view]
Re: Q:conditional formating JIM.H.
2/3/2005 6:53:03 AM
I did that but it did not change anything. Some of zeros are blank, some are
red. Is there any precession issue?

[quoted text, click to view]
AddThis Social Bookmark Button