Query editor
with timeseries as (select * from query_3095760),change as (selectrank() over (partition by day order by market_cap desc) as ranking,day,project,blockchain,product_count,market_cap,market_cap/sum(market_cap) over (partition by day) as market_share,market_cap/lag(market_cap,1) over (partition by project order by day) -1 as change_1d,market_cap/lag(market_cap,7) over (partition by project order by day) -1 as change_7d,market_cap/lag(market_cap,30) over (partition by project order by day) -1 as change_30d,market_cap/lag(market_cap,90) over (partition by project order by day) -1 as change_90d,market_cap/lag(market_cap,180) over (partition by project order by day) -1 as change_180d,market_cap/lag(market_cap,365) over (partition by project order by day) -1 as change_365dfrom timeseries)select *from changewhere day = (select max(day) from timeseries)and market_cap is not nullorder by market_cap desc