Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional Formatting in SQL Reporting Services 2008

In SQL Reporting Services 2008, can you format a field conditionally? In Crystal Reports it is doable. I have a field which I want to be bold if another field is Y, and unbold if its value is N.

like image 284
JonathanWolfson Avatar asked Jun 23 '09 16:06

JonathanWolfson


1 Answers

Use the FontWeight property of the field, and set it to an expression like this:

=iif(Fields!YourTestField.Value="Y","Bold","Default")

You can find FontWeight in the properties pane for the report item, or under Font -> Style -> Bold in the properties dialog (right click -> properties). Use the f(x) button to edit the formula.

like image 117
Peter Radocchia Avatar answered Sep 24 '22 03:09

Peter Radocchia