Skip to content

Commit

Permalink
Change t p75
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Oct 1, 2024
1 parent 8b3147d commit 339c279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def test_lcp_score(self):
[
("2023-12-02", s1a, "/", {"$web_vitals_LCP_value": 1000}),
("2023-12-03", s1a, "/", {"$web_vitals_LCP_value": 400}),
("2023-12-12", s1b, "/", {"$web_vitals_LCP_value": 300}),
("2023-12-12", s1b, "/", {"$web_vitals_LCP_value": 320}),
],
),
("p2", [("2023-12-11", s2, "/", {"$web_vitals_LCP_value": 200})]),
Expand Down
6 changes: 4 additions & 2 deletions posthog/hogql_queries/web_analytics/web_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@ def previous_period_aggregate(function_name, column_name, alias, params=None):
if self.query.includeLCPScore:
select.extend(
[
current_period_aggregate("quantiles", "lcp", "lcp_p90", params=[ast.Constant(value=0.9)]),
previous_period_aggregate("quantiles", "lcp", "prev_lcp_p90", params=[ast.Constant(value=0.9)]),
current_period_aggregate("quantiles", "lcp", "lcp_p75", params=[ast.Constant(value=0.75)]),
previous_period_aggregate(
"quantiles", "lcp", "prev_lcp_p75", params=[ast.Constant(value=0.75)]
),
]
)

Expand Down

0 comments on commit 339c279

Please sign in to comment.