Conditional highlights in the Pivot View can be very helpful where an immediate visual reference is desired. Multiple highlights can be used simultaneously to visually separate and bring attention to two or more conditions. Likewise, multiple conditional highlights can also be used in a manner that compliments each other.
Figure 12: Conditionally highlighting any cell that has Discount >= 10%.
Suppose we want to see what discounts our sales people are giving to their customers. We could set up a conditional highlight that would flag all instances where a particular threshold has been met. For this example, we will start with 10% ([Discount] >= 0.10).
- Select the E3 button
on the toolbar to start the wizard. - Select New Conditional Highlight, name it "10 Percent Discount", and click Next.
- On the first Field Properties screen, double-click on Discount in the Fields list to begin the expression.
- Switch to the Keywords tab.
- Expand the Logic category and double-click on ">=" (greater than or equal to) to add it to the expression.
- Type "0.10" to complete the expression.
- Select Next to proceed to the second Field Properties screen.
- In the Field section, select Discount from the Name dropdown list. This indicates which field(s) will be highlighted.
- In the Cell Style section, select Vertical from the Gradient drop-down menu and Yellow from the Color End drop-down menu. The selected settings can be previewed at the bottom of the screen before applying them.
- To apply the highlight select Finish.
The new conditional highlight is listed in the Highlights section of the View Properties panel. Browse around the grid to confirm that the Discount cell is highlighted for every instance where the discount is greater than or equal to 10 percent.
Again, these are summary figures; in reality, we would have to drill-down to the underlying records to see the actual discounts given per sales transaction. This example is merely intended to illustrate the flexibility and functionality of conditional highlights.
Now, say we want an additional highlight to flag any instance where a salesperson gave a discount of 15% or greater ([Discount] >= 0.15). We need to keep in mind the potential conflict with the previous condition, since 15% is greater than 10%.
Figure 13: Adding a conditional highlight for Discount >= 15%.
- Select the E3 button
on the toolbar to start the wizard. - Select New Conditional Highlight, name it "15 Percent Discount", and click Next.
- On the first Field Properties screen, switch to the Fields tab.
- Double-click on Discount in the Fields list to begin the expression.
- Switch to the Keywords tab.
- Expand the Logic category and double-click on ">=" (greater than or equal to) to add it to the expression.
- Type "0.15" to complete the expression.
- Select Next to proceed to the second Field Properties screen.
- In the Field section, select Discount from the Name dropdown list.
- In the Cell Style section, select Vertical from the Gradient drop-down menu and Orange from the Color End drop-down menu.
- To apply the highlight select Finish.
The new conditional highlight is listed in the Highlights section (it also has a checkmark in the Show box), yet it has no effect on the cells in the grid where the Discount is obviously greater than or equal to 15 percent. The reason for this is that conditional highlights are applied and prioritized in the order in which they are created. In this case, the "10 Percent Discount" highlight was created before the "15 Percent Discount" highlight. Therefore, the "10 Percent Discount" highlight has priority, and subsequently, overrides the "15 Percent Discount" highlight. Fortunately, the priority of conditional highlights can be easily changed at any time.
- Click on the "15 Percent Discount" name in the Highlights section of the View Properties.
- Select on the up arrow located in the bottom right corner of the Highlights section.
Now that the "15 Percent Discount" highlight has priority, we can immediately see that the anticipated cells are properly highlighted in an orange gradient. Conveniently, the cells in which the discount is greater than or equal to 10 percent, but less than 15 percent, are still highlighted in yellow. This illustrates how multiple conditional highlights can be manipulated to compliment each other.
We will create one more conditional highlight to reinforce the previous concepts, as well as illustrate the ease of editing a highlight. Continuing with our previous scenario, say that we want to highlight in red any instances where our salespeople are giving customers 20 percent or greater discounts ([Discount] >= 0.20).
Figure 14: Adding a conditional highlight for Discount >= 20%.
- Select the E3 button
on the toolbar to start the wizard. - Select New Conditional Highlight, name it "20 Percent Discount", and click Next.
- On the first Field Properties screen, switch to the Fields tab.
- Double-click on Discount in the Fields list to begin the expression.
- Switch to the Keywords tab.
- Expand the Logic category and double-click on ">=" (greater than or equal to) to add it to the expression.
- Type "0.20" to complete the expression.
- Select Next to proceed to the second Field Properties screen.
- In the Cell Style section, select Horizontal from the Gradient drop-down menu and Green from the Color End drop-down menu.
NOTE: This time we are purposely leaving the field section set to "All" (the Default).
- To apply the highlight select Finish.
This time, the new conditional highlight is immediately visible in the grid, even though it has the least priority. Because we left the Name drop-down set to "All" in the Fields section of the wizard, the new highlight is still applied to all cells that do not conflict with preceding conditional highlights. This is just one simple example that illustrates how conditional highlights can be combined to visually identify multiple data values of interest.