Making component colors dynamic

SAP BusinessObjects Dashboards allows users to fully control the coloring of their components based on whatever event they desire. For example, if a major alert were to occur we would be able to dynamically change our background to red in order to signal an emergency. This is extremely useful because developers can not only dynamically control the color of bars on a chart but also the rest of the chart components such as the background and text as well.

How to do it...

  1. Take a look at the following screenshot. In cell E2 (highlighted in yellow), we have a COUNTIF statement that will set the bar color to red if any of the regions have sold a number of items less than 40, or blue otherwise.
    How to do it...
  2. In the chart properties, go to the Color tab and click on the square colored box in the Fill column. At the bottom of the color palette, choose the Bind to a Color option and bind to the cell with the color control (E2, in our case).
    How to do it...
  3. Go to the Text tab of the chart properties and click on the color square of the Chart Title. Bind the color to the cell that controls the title text color (in our case, E3).
    How to do it...
  4. Change the cells B2:B5 to a value below 40 and verify that the Bar color and Title color are functioning correctly.
    How to do it...

How it works...

As seen in our example, we can easily control the coloring of our chart components with the help of some Excel formulas. Using this method, we are able to alert users if something significant has occurred. For example, if it is critical that all of the regions surpass a sales threshold of 40 units, we can send out an alert signal (red title and bars) if one of the regions fails.

How it works...

There's more...

Because the dynamic coloring depends on Boolean logic, you'll need the aid of Excel formulas to determine which color is displayed. We recommend that you become familiar with Excel Boolean logic to fully utilize the functionality of dynamic coloring.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset