Query editor
with trades as (selectregexp_extract(trim( '\u00' from tracking_code), '([A-z]+)', 1) as tracking_code, regexp_extract(trim( '\u00' from marketKey), '([A-z]+)', 1) as marketKey, regexp_extract(trim( '\u00' from PERP), '([A-z]+)', 1) as PERP, contract_address, evt_tx_hash, evt_block_time, account, fee, lastPrice, margin, size, tradeSize, volume, totalFee, helper, day, date_trunc('week', evt_block_time) as weekFrom query_2390745)select day,sum(fee) as fees,sum(volume) as volume,coalesce(tracking_code,'OTHER') as tracking_codefromtrades t1where day > now() - interval '90' day and PERP is not null AND tracking_code = 'Dextoro'group byday, tracking_codeorder by day desc