This example shows how to create a Sum Metric with filters to define an “Al Pastor Revenue” metric by summing the “total_price” column for Al Pastor tacos in the TacoSoft sample dataset.
You can use JSON values in the metric definition, either as a measure or as filters.This example shows how to create a Sum Metric using a measure from a JSON column.
Custom Metrics use SQL expressions to aggregate data from your Data Pool, enabling more complex business logic.This example shows how to create a Custom Metric for “Average revenue per order”.