Solved

Conditional Formating in SSRS resport.

Posted on 2010-11-29
2
350 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 250 total points
Comment Utility
have you tried this?
Fields!Total_Point.Value > 0.80 And Fields!Total_Point.Value < 1.09

Open in new window

0
 
LVL 69

Expert Comment

by:ScottPletcher
Comment Utility
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 your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now