Applying Conditional Styles

Conditional styles give you freedom to change a pivot table appearance to make the data more readable. For example, you can highlight values of some field that are greater than 100 with the red color, and values of another field that meet some other condition with the blue color, the difference between data in a pivot table will be clear at a glance.

Besides setting a background color for some cells, you can select an image as a background, change a font and its color, specify a condition to apply only for some values in a required field, etc.

Let’s examine conditional styles benefits by the following example:

There is the list of films and their rental payments grouped by month and year. It is required to quickly identify which films bring the expected revenue, the sum of their rental payments meet the planned monthly range of 20-40 and which films are in less demand, the sum of their rental payments are less than 10.

Conditional styles in use:

1. Open the Conditional Styles dialog box by either of these ways:

  • Click on the toolbar
  • Right-click the pivot table header and select Conditional Styles on the menu

2. Click the Add Condition icon to create a new condition.

3. Select the payment amount f ield from the Field drop-down list and go to the Condition field to select Between value.

4. Enter 20 and 40 values into Value1 and Value2 fields to specify the required range of values.

5. Clear all the check boxes except the Cell one in the Apply To section, as there is no need to apply this condition for all the cell types in the pivot table.

6. In the Appearance section click the BackColor field and select LightBlue. Now, the first condition is ready. Click the Add Condition icon to create another condition for the films which have the sum of payment amounts less than 10.

7. Select the payment amount field from the Field drop-down list and go to the Condition field to select Less value.

8. Enter 10 into the Value1 field and leave only the Cell check box selected in the Apply To section.

9. In the Appearance section, select the red color from the ForeColor field to change the font color of the payment amount values into red.

10. Click OK to apply the conditional styles to the pivot table. The data will look like the following:

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Studio for PostgreSQL.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for PostgreSQL?