You can summarize data in your query by using the Measure and Group By options in the Summary building block. Following the steps from How to Create a Query. Here are the steps to summarize data in a query.
-
Go to Analytics > Dashboard Manager > Queries.
-
Open an existing query.
-
Click + under the default Series (
S1) building block. -
In the Add building block menu:
-
Select Summary.
Add building block menu
-
-
In the Summary section:
-
Click Measure By.
-
Select the column for measure.
-
Click Group By.
-
Select the column for grouping.
-
Close the summary setting section.
Summary settings
-
-
Click Save.
The resulting query flows from the Series building block through the Summary building block to the Output.
Example
Summary on Population Grouped by Country
The following example shows summarized data. Measure is applied on Population, aggregated as a Sum. Data is grouped by Country.
Not Summarized
Shows an example of the initial, non-summarized dataset.
Summarized
Shows an example of what the summarized data would look like after applying the steps.