Bunch's Blog

One day I'll have a catchy subtitle, one day
posts - 77, comments - 89, trackbacks - 0

My Links

News

Tag Cloud

Archives

Green

Conditional SSRS Formatting

Expressions are something I have found to be very handy when using SSRS. A report I needed to setup had to list when a user had last visited a site. Since they needed to make a visit every three years the report listed the last visit date and the date three years out (this was all done is the stored procedure). Sometimes folks may get behind and I wanted to highlight the sites that were past due.

The report needed to be able to be sorted by a date, town or county so I could not just list the sites by date and have the overdue visits all at the top. I decided to simply have the overdue sites listed in bold. To accomplish this I added the following to the TableRow’s font weight property:

=iif (FORMAT(Fields!ThreeYearsOut.Value, "MM/dd/yyyy") < Today(), "Bold", "Normal")

Now when the report is generated the overdue sites are bolded and stick out a bit even when not sorted by date to begin with.

 

Technorati Tags:
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Thursday, December 04, 2008 1:49 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: