String manipulation in dashboards

Data can be difficult to interpret without any context, and additional commentary can help save the business user from manually having to research additional information. Annotations are useful for providing additional context to a data visualization.

In this recipe, we will look at using calculated fields to amplify the message of the data and to automatically add new information to the annotations.

Getting ready

For the exercises in this recipe, we will build on the existing Chapter 6 dashboard. We don't need to add in any more data for now.

How to do it…

  1. Let's start by adding an annotation to the dashboard. Right-click on the square that we created near the Australian flag in the last recipe. In the pop-up menu, select Annotation and then Mark. You can see an example of this activity in the following screenshot:
    How to do it…
  2. Now, you will get a pop-up window that contains a default specification of the annotation. However, this must be amended so that it is relevant to the data points. The pop-up window looks like the following screenshot, by default:
    How to do it…
  3. Next, let's make the annotation more relevant to the visualization. Remove the text in the annotation and enter <F1> was <DimDate#csv+ (FactInternetSales.csv).AGG(KPI Difference between Actual and Target)> Target. The pop-up window will now look like the following screenshot:
    How to do it…

    It is easy to add the content of the calculated fields using the Insert button on the right-hand side. When you click on the Insert button, it gives you a list of all the fields. You can see an example of this in the following screenshot:

    How to do it…
  4. Go back to the Edit Annotation window by clicking on it and then click on OK in order to create the annotation.
  5. The annotation uses a mix of calculated fields and field names to construct an appropriate annotation. The resulting annotation looks like the following screenshot:
    How to do it…

How it works…

Strings can be set up using calculated fields, parameters, field names, or a combination of these. It is a useful feature to make your visualization punchy.

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

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