This document discusses how to build metrics that aggregate data on multiple levels, known as metrics in metrics. It provides examples of calculating the average monthly revenue and average quarterly number of new leads. The solution is to define the aggregation level for the inner metric using the BY clause, such as BY Month/Year. This tells the inner aggregation where to stop and hand over to the outer aggregation. Behind the scenes, the inner metric computes individual results but returns a single value to the outer metric and report. The BY clause is not needed if the attribute is already in the report. Metrics can be nested with multiple BY clauses to aggregate data on multiple attributes.