Don't multiply average revenue metric by sampling rate in the query (#5931)

* Don't multiply average revenue metric by sampling rate in the query

* Fix formatting
This commit is contained in:
Adrian Gruntkowski 2025-12-03 15:49:11 +01:00 committed by GitHub
parent fa09b73ff1
commit 98632aee74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -272,8 +272,7 @@ defmodule Plausible.Stats.SQL.Expression do
wrap_alias(
[e],
%{
average_revenue:
fragment("toDecimal64(avg(?) * any(_sample_factor), 3)", e.revenue_reporting_amount)
average_revenue: fragment("toDecimal64(avg(?), 3)", e.revenue_reporting_amount)
}
)
end