Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Conditional Formating in SSRS resport.

Posted on 2010-11-29
2
Medium Priority
?
367 Views
Last Modified: 2012-05-10
How do you write conditional formating where you have a value within a range?  Say you want the color to be orange if the number is between 0.80 and 1.09

This is what I have

=SWITCH(Fields!Total_Point.Value <= 0.80,"#ccffff",
Fields!Total_Point.Value > 0.81,"Orange",
Fields!Total_Point.Value <= 40,"Black",
Fields!Total_Point.Value > 40,"Red")

Thanks
0
Comment
Question by:NickMalloy
2 Comments
 
LVL 10

Accepted Solution

by:
hosneylk earned 1000 total points
ID: 34236112
have you tried this?
Fields!Total_Point.Value > 0.80 And Fields!Total_Point.Value < 1.09

Open in new window

0
 
LVL 70

Expert Comment

by:Scott Pletcher
ID: 34241699
IIf.  The first is true value, the second is false value ... but the false value can also be another IIf :-) .

IIf(Fields!Total_Point.Value <= 0.80, "<color name>/value",
IIf(Fields!Total_Point.Value > 0.81 AND Fields!Total_Point.Value < <_value_>,"Orange",
IIf(Fields!Total_Point.Value <= 40,"Black",  ... )))...
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question