Rules (If conditions)

You can apply conditional formatting using font color, style, icons, or background based on one or more IF conditions.

Refer to the Create Rule section to get started. Once the rule is created and you can see the Conditional Formatting side panel, follow the below steps.

STEP 1: Choose 'Rules (If conditions)' in the Format by dropdown. You can see two sections - Style and Conditions.

STEP 2: Using the Style section, you can format text based on color/style, apply a background color, or select icons.

STEP 3: In the 'Conditions' section, you can define conditions using options such as Number, Data selection, Values, Formula, and User Selection.

Let's look at examples for each of these options.

Style

  • Font style: bold, italic, underline

  • Cell background

Highlight the cells that match a conditional formatting rule by applying a background color.

  • Font color

Apply a custom font color when a conditional formatting rule is met.

  • Cell borders

  • Adding icons or text

Display icons to apply conditional formatting on your data. You can also use custom icons by clicking the Upload Icon link.

You can position the text/icons with respect to the cell values. You can also choose to display only the icons or text and hide the cell values.

When you use icons, you have an additional option to align your icons in the grid. By default, the icons are left aligned.

  • Hiding values

Business reporting may require withholding certain information to protect strategic interests. You can use conditional formatting rules to mask values based on specific criteria.

Conditions

1. Number

In this example, we are highlighting the subcategories where 2021 Actuals are greater than 10 million. Note that we have selected 'Bold' and selected 'Green' as the font color. The numbers field supports scaled entries such as 10m. Click 'Apply' once the changes are done.

2. Data selection

You can also use a cell value in the condition.

2.1. Select 'Data selection', click on the 'Set value' field and select a cell in the report.

Note:

  • In this example, we have used 'Values and Totals' as the 'Row hierarchy levels'. You can see a new field where you can choose whether conditional formatting needs to be applied to the row grand total or not.

  • We are also using a background color for the formatting.

2.2. Click on the 'select value from' field and click on a cell in the report. The value gets populated automatically. Click 'Apply'.

2.3. The formatting is applied to all the hierarchy levels where 2021 Actuals are greater than the selected value.

3. Value

You can apply conditional formatting based on another measure in the visual. Let's highlight 2021 Actuals when it is greater than the 2021 Plan.

Measures that were added from the data source, auto-calculated variances, columns/measures created using calculations, data input and simulations can all be used in the IF condition.

3.1. Click on the highlighted dropdown and select 2021 Plan. Click 'Apply'.

3.2. Note that conditional formatting is applied only to the totals - Categories, Regions, and Subregions since we have chosen 'Row hierarchy levels' as 'Totals' and included 'Row grand total'.

4. Formula

You can create simple formulas using either numeric values or measures. Let's highlight the records where 2021 Actuals are greater than the 2021 Plan by at least 5m. Configure as shown in the below image and click 'Apply'.

Tea & coffee in the East subregion is the only record that matches the given condition.

The 'Add condition' option lets you create nested AND/OR conditions.

Let's consider another example where the conditions are Q4 2021 Actuals greater than 10m, the Category is Beverages and the Sub-regions are Pacific and East.

STEP 1: Configure the settings as shown below for the first condition. Click on 'Add condition'.

STEP 2: You can see another condition with default selections and an option to select AND/OR. Let's select 'AND' and 'Category' from the highlighted dropdown.

STEP 3: You can see several options as shown in the below image. Let's go with the default option.

STEP 4: In the 'Choose members' dropdown, select 'Beverages'.

STEP 5: Let's now add the third condition. Click on 'Add condition'. In the highlighted dropdown (2021 Plan), select 'Sub Region'.

STEP 6: Select Pacific and East in the dropdown as shown below. Click 'Apply'.

STEP 7: You can see that the rows for Juices and Soda for East and Pacific are highlighted based on the three conditions.

5. User selection

You can apply conditional formatting based on a selection during runtime ie. in the reading view. Let's consider a case where we want conditional formatting to be applied to 2021 Actuals based on a Variance value selected during runtime.

STEP 1: Configure as shown in the below image. Note that 2021 Actuals is set in the 'Apply to' field and 'Variance' in the IF condition. Click on the dropdown and select 'Variance'.

STEP 2: Let's also add an icon. Click on the 'Icon' checkbox. There are several customization options.

STEP 3: Click on the icon dropdown and choose the flag icon.

STEP 4: Change the flag color to green and the font color to black. Click 'Apply'.

STEP 5: Click on a value in any of the variance columns. You can see flag icons in the 2021 Actuals column where the variance is greater than the selected variance.

6. Dates

With Inforiver, you can compare date dimensions in rows and columns and automatically format cells based on the comparison. Let's add date dimensions in the row and column parameters. To compare two date dimensions, select the Compare Date option. In the example below, we used conditional formatting to highlight the cells where the order date exceeds the ship date.

In the example above, we compared each ship date against each order date and highlighted the cells with the order date greater than the ship date. Instead of comparing each cell, you can also compare a date dimension with the minimum or maximum value of another date dimension. To demonstrate this, let's highlight the cells with the order date greater than the minimum ship date.

You can compare date dimensions against static dates using the Selected Date option and specify the date to be compared against.

In the next section, we'll be covering Color scale.

Last updated