Query editor
with base_table as (select *,case when collateral_rate <= 150 then '<= 150'when (collateral_rate > 150 and collateral_rate <= 200) then '150 - 200'when (collateral_rate > 200 and collateral_rate <= 300) then '200 - 300'when (collateral_rate > 300 and collateral_rate <= 400) then '300 - 400'when (collateral_rate > 400 and collateral_rate <= 500) then '400 - 500'when (collateral_rate > 500 and collateral_rate <= 1000) then '500 - 1000'when collateral_rate > 1000 then '> 1000' end as collateral_rate_bucketfrom query_2694885)select day_ts, collateral_rate_bucket, count(distinct user_str) as unique_address,sum(total_daily_steth_amount) as steth_amount, sum(total_daily_steth_usd_amount) as steth_usd_amountfrom base_tablegroup by 1,2