SSRS: Conditional Font Color

Denoting data trends by applying logic-controlled formatting, for example, employees with the most amount of accumulated Sick Leave.

To illustrate how to apply specifying formatting based on values, I’ll begin with a dataset that returns employee data.

2-calculation-field-formatting

By viewing the resultset, it’s difficult to discern any distinguishable trends in the data.

To denote those employees with over 40 hours of sick leave, I’ll assign a test for the field’s Font color property that will use a red color is Sick Leave is over 40 or it will remain black.

1-calculation-field-formatting

3-calculation-field-formatting

For the Font Weight property, I’ll assign a similar function that will make the same text bold or leave it normal.

4-calculation-field-formatting

By executing the report, I can now more easily tell which employees have over 40 hours of sick leave because their hours are red and bold.

5-calculation-field-formatting

Download Report

(right-click, Save As)

Leave a comment