Difference between revisions of "Working with Values"

From Explore Analytics: The Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
'''Values''' are a core component of Pivot and Chart views. Values are aggregations or calculations based on the underlying data that you want to display in your views.
+
'''Value fields''' are a core component of Pivot and Chart views. Value fields are aggregations or calculations based on the underlying data that you want to display in your views.
  
For example, the following pivot view shows sales per quarter (in the rows), comparing year over year (in the columns). In the pivot, the values are displayed in each cell of the pivot. In this case, the values are a sum, adding together all of the sales for the row and column:
+
For example, the following pivot view shows sales per quarter (in the rows), comparing year over year (in the columns). In the pivot, the values are the numbers that are displayed in the pivot. In this case, the values are a sum, adding together all of the sales for the row and column:
  
 
[[file:samplepivot.png]]
 
[[file:samplepivot.png]]
  
In this example, the following donut view shows a count of incidents, grouped by priority. In the chart, the sections of the pie are proportional to the values (count of incidents):
+
The following donut chart shows a count of incidents, grouped by priority. In the chart, the slices of the donut are proportional to the value (count of incidents):
  
 
[[file:samplepie.png]]
 
[[file:samplepie.png]]
  
== Selecting a Value ==
+
== Selecting a Value Field ==
  
 
The process for selecting values is similar for both Pivot and Chart views.  
 
The process for selecting values is similar for both Pivot and Chart views.  
Line 41: Line 41:
 
The value is defined by the following options:
 
The value is defined by the following options:
 
*'''Calculation''' - Defines how the values are calculated. Choices are:
 
*'''Calculation''' - Defines how the values are calculated. Choices are:
**''sum'' - Available for integer fields -- Adds all of the data within the category.
+
**''sum'' - Available for numeric and duration fields -- Adds all of the data within the category.
 
**''count rows'' - Counts how many rows of data within the category.
 
**''count rows'' - Counts how many rows of data within the category.
**''count distinct values'' - Counts how many unique values exist within the category.
+
**''count distinct values'' - Counts how many unique values of the selected field exist within the category.
**''count non-empty values'' - Counts how many rows of data that are not null within the category.
+
**''count non-empty values'' - Counts rows of data for which the selected field is not null within the category.
**''average'' - Available for integer fields - Averages all of the data within the category.
+
**''average'' - Available for numeric and duration fields - Averages all of the data within the category.
**''min'' - Available for integer fields - Returns the lowest value within the category.
+
**''min'' - Available for numeric and duration fields - Returns the lowest value within the category.
**''max'' - Available for integer fields - Returns the highest value within the category.
+
**''max'' - Available for numeric and duration fields - Returns the highest value within the category.
 +
**''median'' - Available for numeric and duration fields - Returns the median of the data within the category. This calculation is currently only available in a composite view.
 +
**''percentile'' - Available for numeric and duration fields - Returns the specified percentile of the data within the category. This calculation is currently only available in a composite view.
 
**''average age'' - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and averages all of the ages within the category.
 
**''average age'' - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and averages all of the ages within the category.
 
**''min age'' - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and returns the lowest age within the category.
 
**''min age'' - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and returns the lowest age within the category.
Line 57: Line 59:
 
=== Display As ===
 
=== Display As ===
  
Clicking the '''Display As''' button provides additional options for visualizing the value. '''Display As''' options do not change the value, but instead provide different ways of presenting the same data.
+
Clicking the '''Display As''' button provides additional options for displaying the value. '''Display As''' options do not change the value, but instead provide different ways of presenting the same data.
  
 
The additional options available are:
 
The additional options available are:
*'''Display Values As''' - This drop-down determines how the value will be displayed. Choices are:
+
*'''difference from''' - Shows the difference from the value of the Base Item in the Base Field.
**'''normal''' - displays the value defined above without any additional manipulation.
+
*'''% difference from''' - Shows the percentage difference from the value of the Base Item in the Base Field
**''difference from''' - displays the value as a difference from another column or grouping. Additional choices are:
+
*'''% of''' - Shows values as a percentage of the value of the Base Item in the Base Field
***''Display As Base Field'' - The grouping in the view to calculate the difference from.
+
*'''running total in column''' - Shows the values in each column as a running total
***''Display As Base Item'' - The particular item within the grouping to calculate the difference from. Selecting ''(previous)'' will calculate the difference for each grouping based on the previous grouping in the view.
+
*'''running total in row''' - Shows the values in each row as a running total
**''% difference from'' - displays the value as a % difference from another grouping. Additional choices are:
+
*'''running total in''' - Shows successive items in the Base Field as a running total. For example, if the Base Field is "Month", then "running total in month" will run a total of January, February, and so on. It creates a running total for every combination of other row/column fields except "Month". For example, for every product and every year there's a running total in Month.
***''Display As Base Field'' - The grouping in the view to calculate the difference from.
+
*'''running total by''' - Show items for the each item in the Base Field as a running total. For example to have a running total showing the balance of an account use "running total by account".
***''Display As Base Item'' - The particular item within the grouping to calculate the difference from. Selecting ''(previous)'' will calculate the difference for each grouping based on the previous grouping in the view.
+
*'''% of row''' - Shows the values in each row as a percentage of the total for the row
**''% of'' displays the value as a percent of another grouping. Additional choices are:
+
*'''% of column''' - Shows the values in each column as a percentage of the total for the column
***''Display As Base Field'' - The grouping in the view to calculate the difference from.
+
*'''% of total''' - Shows the value in each cell as a percentage of the total for all cells
***''Display As Base Item'' - The particular item within the grouping to calculate the difference from. Selecting ''(previous)'' will calculate the difference for each grouping based on the previous grouping in the view.
+
*'''% of total by''' - Shows the value in each cell as a percentage of the total by Base Field
**''running total in column'' (Pivot only) displays the value as a cumulative total moving down the column.
+
*'''% running total in column''' - Calculates running total in column, then display it as % of column
**''running total in row'' (Pivot only) displays the value as a cumulative total moving across the row.
+
*'''% running total in row''' - Calculates running total in row, then display it as % of row
**''running total in'' (Pivot only) displays the value as a cumulative total within groupings. Additional choice is:
+
*'''% running total in''' - Calculates running total in Base Field, then display it as % of the total in Base Field
***''Display As Base Field'' - The grouping in the view to calculate the running total across.
+
*'''% running total by''' - Calculates running total by Base Field, then display it as % of total by Base Field
**''running total by'' (Pivot only) displays the value as a cumulative total between groupings. Additional choice is:
+
 
***''Display As Base Field'' - The grouping in the view to calculate the running total across.
+
=== Reference Line ===
**''% of row'' (Pivot only) displays the value as a percent of the total value across the row.
+
 
**''% of column'' (Pivot only) displays the value as a percent of the total value within the column.
+
A Reference Line is an annotation over the chart, available for Timeline views. Each Value in a timeline chart can have a reference line, shown as a dashed red line across the chart.
**''% of category'' (Chart only) displays the value as a percent of the category grouping.
+
 
**''% of secondary category'' (Chart only) displays the value as a percent of the secondary category grouping.
+
For example, this timeline chart is showing a reference line at a constant 90% across the chart:
**''% of total'' displays the value as a percent of the sum of all of the data within the view.
+
 
**''% of total'' displays the value as a percent of the sum of all of the data within the grouping. Additional choice is:
+
[[file:referenceline.png]]
***''Display As Base Field'' - The grouping in the view to calculate the percent of total from.
+
 
**''% of running total in column'' (pivot only) displays the value as a cumulative percentage within the column.
+
To add a reference line:
**''% of running total in row'' (pivot only) displays the value as a cumulative percentage within the row.
+
#Select the value to which you'd like to add a reference line.
**''% of running total in'' (pivot only) displays the value as a cumulative percentage within the row. Additional choice is:
+
#Click the '''Edit''' icon to open the '''Field Settings''' dialog.
***''Display As Base Field'' - The grouping in the view to calculate the running total within.
+
#Click the '''Reference Line''' button, which will add the additional options. Populate the following options:
**''% of running total by''' (pivot only) displays the value as a cumulative percentage within the row. Additional choice is:
+
#:'''Reference Line''' - select the type of reference line (currently '''Constant''' or '''None''').
***''Display As Base Field'' - The grouping in the view to calculate the running total across.
+
#:'''Reference Line Threshhold''' - The value along the Y-Axis for this value where the reference line will be drawn.
 +
 
 +
{{Template:TOC|View Editor|Using Multiple Tables in a View}}

Latest revision as of 08:56, 13 April 2018

Overview

Value fields are a core component of Pivot and Chart views. Value fields are aggregations or calculations based on the underlying data that you want to display in your views.

For example, the following pivot view shows sales per quarter (in the rows), comparing year over year (in the columns). In the pivot, the values are the numbers that are displayed in the pivot. In this case, the values are a sum, adding together all of the sales for the row and column:

Samplepivot.png

The following donut chart shows a count of incidents, grouped by priority. In the chart, the slices of the donut are proportional to the value (count of incidents):

Samplepie.png

Selecting a Value Field

The process for selecting values is similar for both Pivot and Chart views.

To select values, navigate to the view, and click the Select Fields button to reveal the field selection pane.

In the selection pane, there is a field that displays all the fields available on the view's table, labelled with an instruction:

Selectfields1.png

Any reference fields will be marked with a right-facing arrow. Click on them to select fields from related tables:

Referencefields.png

To add the value to the chart, simply drag the desired field onto the Value fields field.

Selectfields2.png

When the fields is dropped onto the Value fields field, a Field Settings dialog will appear to give further options on how to display and calculate the values.

Selectfields3.png

Alternately, you can generate values using Calculated Values, which are created by formulas based on other values.

Defining Field Settings

Field Settings define how the values are calculated or aggregated for the view.

The value is defined by the following options:

  • Calculation - Defines how the values are calculated. Choices are:
    • sum - Available for numeric and duration fields -- Adds all of the data within the category.
    • count rows - Counts how many rows of data within the category.
    • count distinct values - Counts how many unique values of the selected field exist within the category.
    • count non-empty values - Counts rows of data for which the selected field is not null within the category.
    • average - Available for numeric and duration fields - Averages all of the data within the category.
    • min - Available for numeric and duration fields - Returns the lowest value within the category.
    • max - Available for numeric and duration fields - Returns the highest value within the category.
    • median - Available for numeric and duration fields - Returns the median of the data within the category. This calculation is currently only available in a composite view.
    • percentile - Available for numeric and duration fields - Returns the specified percentile of the data within the category. This calculation is currently only available in a composite view.
    • average age - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and averages all of the ages within the category.
    • min age - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and returns the lowest age within the category.
    • max age - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and returns the highest age within the category.
    • sum of age - Available for date-time fields - Converts the date-time to an age (duration since the date-time), and adds all of the ages within the category.
  • Label - Defines the name of the value as it is displayed in the view. Should be unique from other Value fields.
  • Hidden - If checked, the value will not be rendered as part of the view. Hidden values are typically used as inputs for Calculated Values.

Display As

Clicking the Display As button provides additional options for displaying the value. Display As options do not change the value, but instead provide different ways of presenting the same data.

The additional options available are:

  • difference from - Shows the difference from the value of the Base Item in the Base Field.
  • % difference from - Shows the percentage difference from the value of the Base Item in the Base Field
  • % of - Shows values as a percentage of the value of the Base Item in the Base Field
  • running total in column - Shows the values in each column as a running total
  • running total in row - Shows the values in each row as a running total
  • running total in - Shows successive items in the Base Field as a running total. For example, if the Base Field is "Month", then "running total in month" will run a total of January, February, and so on. It creates a running total for every combination of other row/column fields except "Month". For example, for every product and every year there's a running total in Month.
  • running total by - Show items for the each item in the Base Field as a running total. For example to have a running total showing the balance of an account use "running total by account".
  • % of row - Shows the values in each row as a percentage of the total for the row
  • % of column - Shows the values in each column as a percentage of the total for the column
  • % of total - Shows the value in each cell as a percentage of the total for all cells
  • % of total by - Shows the value in each cell as a percentage of the total by Base Field
  • % running total in column - Calculates running total in column, then display it as % of column
  • % running total in row - Calculates running total in row, then display it as % of row
  • % running total in - Calculates running total in Base Field, then display it as % of the total in Base Field
  • % running total by - Calculates running total by Base Field, then display it as % of total by Base Field

Reference Line

A Reference Line is an annotation over the chart, available for Timeline views. Each Value in a timeline chart can have a reference line, shown as a dashed red line across the chart.

For example, this timeline chart is showing a reference line at a constant 90% across the chart:

Referenceline.png

To add a reference line:

  1. Select the value to which you'd like to add a reference line.
  2. Click the Edit icon to open the Field Settings dialog.
  3. Click the Reference Line button, which will add the additional options. Populate the following options:
    Reference Line - select the type of reference line (currently Constant or None).
    Reference Line Threshhold - The value along the Y-Axis for this value where the reference line will be drawn.