Spotfire® User Guide

Using reference elements to show event bands from another data table – example

You can configure reference elements to use a different data table than the parent visualization. This can be useful, for example, when analyzing production metrics and event logs (such as downtime and well interventions), which are usually stored in different data tables.

About this task

In this example, an analysis contains one data table with process metrics, named "Well production", and another data table with event logs, named "Well events", as shown in the images below.



Configuring event bands using a different data table than the parent visualization:

Before you begin

You have created a line chart, using the data table "Well production". It is configured with Timestamp on the X-axis and Sum(Production_Rate_BOPD) on the Y-axis, as shown in the image below.

Procedure

  1. Open the Visualization properties panel and add a reference layer to the line chart.
  2. Remove the Line that is added automatically, and add a Band.
  3. Expand the Data card of the reference layer, and select the "Well events" data table so that the layer no longer uses the same data table as the parent.
  4. Go to the Appearance tab and select Draw on: X-axis.
  5. Go back to the Configuration tab and configure Value as Min([Event_Start_Time]).
  6. Add a Secondary value and configure it as Min([Event_End_Time]).
  7. Add Element by and select (Row Number).
  8. Add Color by and select Well.
  9. Optionally, change the name of the layer to something more meaningful, for example "Event bands".
    Tip: To make the visualization clearer, you can adjust the appearance of the event bands in a number of ways, for example:
    • Select the check box Show borders in the Band card.
    • Go to the Appearance tab, adjust the transparency, and select Place in: Background.

Results

The visualization shows event bands using a different data table than the parent visualization.

Adding a limiting marking for the event bands

To keep the visualization clean and readable, you can configure a KPI chart to control which event bands are shown using a marking limitation.

Before you begin

You have configured the event bands as described above.

Procedure

  1. Create a KPI chart with a KPI that uses the Well events data table. On Tile by, select [Event Type], and on the Value (Y-axis), select Sum(Cost).
    See Creating a KPI chart to learn more about configuring KPI charts.
  2. Make sure that the KPI chart has a marking configured.
  3. In the line chart, expand the Data card for the Event bands reference layer.
  4. Click Add limitation, and select Marking.
  5. In the Markings panel, select the marking used in the KPI chart.

Results

The Event bands reference layer is now limited by the marking in the KPI chart. The image below shows the KPI chart where Downtime is marked, and the corresponding event bands are shown in the line chart. In the Visualization properties panel, you can see the properties that are configured for the Event bands reference layer.