> For the complete documentation index, see [llms.txt](https://docs.doubleloop.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.doubleloop.app/measure/control-the-stats-on-your-strategy-map/weighted-averages.md).

# Weighted averages

When a simple average won't suffice.

For a metric like conversion rate, a simple average over multiple days provides a misleading picture. For example, activity on the weekends is often much different than the weekdays.\
\
Here's how to do weighted averages in DoubleLoop so you can get an accurate sense of metric performance over time.

1. Instead of sending a metric like conversion rate to DoubleLoop, send the numerator and the denominator as separate metrics. For example, create two separate metrics for transactions and sessions.
2. Create a metric source in DoubleLoop I set "Calculated" as the source. This will allow you to select the numerator and denominator.
3. Attach a metric to your calculated metric source.
4. For the roll-up calculation for the metric, choose "Weighted average." When this option is selected, the map stats will divide the sum of the numerator values by the sum of the denominator values.

![Creating a metric source where you can specify the numerator and denominator](https://2649897075-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHHueOqTqo2O69VPdaM%2Fuploads%2FigJuNVgjTWWJyzJNKw0L%2FCleanShot%202022-06-12%20at%2022.39.03%402x.png?alt=media\&token=9ff74fce-4c6a-4c5b-bfe3-d6b0bb169d6c)
