Measures
Understand the fundamentals of how to manage data aggregation through Measures.
To connect to a database other than Google Analytics you will need an
enterprise plan.
Contact sales
What are Measures?
Measures are aggregated computations performed on specific columns within your model. They are used to derive insightful metrics, often serving as the foundation for more complex analytical structures. Measures can range from simple sums or averages to intricate calculations utilizing various dimensions, conditions, and data transformations.
How to Define Measures
When defining a measure, there are several parameters you need to be acquainted with:
Name
A unique identifier for the measure across all semantic models in your project.
Description
A human-readable explanation of the calculated measure.
Aggregator
Determines the type of aggregation applied, such as sum, average, max, etc.
Expression (expr)
Either references an existing column or provides a SQL expression for a new or derived column.
How to create and edit a measure
In the Catalog section click click on a table you want to set up a measure for. Then click on the Measures
tab.
Specification for Measures
Measures are articulated using the following structure:
For example, consider a semantic model detailing transactions:
Supported Aggregations
We support a rich set of aggregation types to cater to various data analysis needs:
Basic aggregations provide elementary mathematical operations on data.
sum
: Total of values.min
: Smallest value.max
: Largest value.average
: Mean of values.
When constructing measures, it’s crucial to ensure the data types and SQL functions align with your specific data platform’s capabilities. Differences may exist across platforms.
Wrapping Up
Measures play a central role in deriving insights from your data with metrics. By understanding and utilizing measures effectively, you’ll be equipped to derive more valuable and accurate metrics for your analytical endeavors.