Query editor
with dpi_prices as (--DeFi Pulse Indexselect minute as "day", 'DPI' as asset, price from prices.usdwhere contract_address = 0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2band blockchain = 'ethereum'and extract(hour from minute) = 0and extract(minute from minute) = 0order by minute asc),start_price as (select price from dpi_priceswhere date(day) in (date(timestamp '{{start_date}}'))),end_price as (select price from dpi_priceswhere date(day) in (date(timestamp '{{end_date}}')))select ((select * from end_price)-(select * from start_price))/(select * from start_price)*100 as perc_change