/pct_good_fid.sql Secret
Last active
November 10, 2023 01:29
Star
You must be signed in to star a gist
The percentage of website that are assessed as having good FID on desktop and mobile (where applicable).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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