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:
parent
fa09b73ff1
commit
98632aee74
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue