Setting up Totals in the Aggregator Panel

  • 21 December 2021
  • 0 replies
  • 259 views

Userlevel 3
Badge

You can choose to visualize your data in a specific way in any Block (List, Metric or Table), which is referred to as a view. Use aggregators to set up totals and sub-totals on your view. If you have the appropriate application permissions, you can save your views to refer back to them later.

 

Table of Contents

 

Adding a Total

 

To add a total, click on the Σ icon. The default total is Sum for all Metrics listed in the rows and columns as well as all dimensions, including those that are hidden or used as Page Selectors.

The first Metric is shown as expanded so you can view all the dimensions and their aggregators. 

You can choose to add totals to one or all Dimensions suggested. To identify the hidden dimension(s), hover your cursor over the non-time dimension label.

Once you are done, don't forget to save your View, so that you can go back to it even after you've made changes to your Block.

 

1bjyC5ZgvlyjpQlwpiIiYkI6k29A4N341LazoKDgtgIvLcFekpB8xHNdY7JV2pvFpGeNfBmPPnoR67CxYEUux6zhbu-xPtNi8g52BtJHQwmKI3ruhfyURvgLQyBbriBaauWKOOlpMnXGH4YxtgPd0LpsnKtBZEkRF6jgjLuWX11rhG_IVhDEWO4_5Ozg Change the aggregator for a dimension and copy it to all Metrics sharing that dimension.
aySz0A_R8WsRzdC1apkFzVIdvQhDx7pcUBsE8ubrMAXmD3o5CIH9W5AV4WNTX24LaXpiTrGPNFr5w17OiRFQSAudAlJ02kxDMFTsnrjGCct5QL0oYIsoyBpLmXtyEYmUFaq4VvevDtAJgpFhViKbGI8vTZzWx_djTXq9jg7h4ppMwsrIA_CJHnn02784 Click to remove the aggregator.

 

To update the view, click Apply.

 

Note that aggregations are performed in this order: non-time Dimensions first then the other Dimensions.

 

If you have the appropriate application permissions to save changes to a view, you'll see a Save button in the upper-right corner. If not, the changes you make to the view are not saved when you close it.

 

Types of totals

 

Depending on the data type of Metric, there are different ways to calculate totals.

 

Aggregator Data Type 
SUM: calculates the sum of a Dimension Number, Integer 
AVG: calculates the average of a Dimension Number, Integer 
MIN: calculates the minimum value of a Dimension Number, Integer, Date 
MAX: calculates the maximum value of a Dimension Number, Integer, Date 
Count: counts the number of values of a Dimension Number, Integer, Dimension, Date, Text 
Count all : counts the number of items within a Dimension  Number, Integer, Dimension, Date, Text 
Count Blank: counts the number of blank items within a Dimension  Number, Integer, Dimension, Date, Text 
Count Distinct: counts the number of different items within a Dimension  Number, Integer, Dimension, Date, Text 
First: shows the first cell of a Dimension  Number, Integer, Dimension, Date, Text 

First Non Blank: shows the first value of a Dimension 

Number, Integer, Dimension, Date, Text 
Last: shows the last cell of a Dimension  Number, Integer, Dimension, Date, Text 
Last Non Blank: shows the last value of a Dimension Number, Dimension, Date, Text 

 

Total for Boolean Metrics 

 

  • Any: returns true if at least one of the elements is true

  • All: returns true if all the values are true or false.  It is important to note that Blank state Booleans will be ignored, see image below.

  • First : returns the state of the first item within the dimension, for example, January in a 1-year month dimension. 

  • First Non Blank: returns the state of the first item that is not blank

  • Last: returns the state of the last item within the dimension, for example December in a 1-year month dimension.

  • Last Non Blank: returns the state of the last item that is not blank

 

When working with Boolean Totals, remember that there are three states in booleans.  Blank, True or False as shown here.

 

Display options: Show every subtotal

 

To display subtotals for dimensions, turn on the Show every subtotal toggle at the bottom of the View Aggregators panel.

In the following example, the Metric is composed of two dimensions, Country and Products.  The Metric on the left has subtotals turned on, which allows you to see the totals for each product, along with the total for all products and countries.  While the Metric on shows the total for countries and products because the Show every subtotal toggle switch is turned off. 

 

 

 


This topic has been closed for comments