Skip to content

Commit 98632ae

Browse files
authored
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
1 parent fa09b73 commit 98632ae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/plausible/stats/sql/expression.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ defmodule Plausible.Stats.SQL.Expression do
272272
wrap_alias(
273273
[e],
274274
%{
275-
average_revenue:
276-
fragment("toDecimal64(avg(?) * any(_sample_factor), 3)", e.revenue_reporting_amount)
275+
average_revenue: fragment("toDecimal64(avg(?), 3)", e.revenue_reporting_amount)
277276
}
278277
)
279278
end

0 commit comments

Comments
 (0)