Skip to content

Instantly share code, notes, and snippets.

@rviscomi
Last active November 10, 2023 01:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
The percentage of website that are assessed as having good FID on desktop and mobile (where applicable).
WITH origins AS (
SELECT
origin,
LOGICAL_AND((fast_fid / (fast_fid + avg_fid + slow_fid)) >= 0.75) AS good_fid
FROM
`chrome-ux-report.materialized.device_summary`
WHERE
date = '2023-09-01' AND
device IN ('desktop', 'phone') AND
fast_fid IS NOT NULL
GROUP BY
origin
)
SELECT
COUNTIF(good_fid) / COUNT(0) AS pct_good_fid
FROM
origins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment