Query editor
selectblock_date,casewhen fpi_flow > 0 thenconcat('Bought for ', other_token_symbol)elseconcat('Sold for ', other_token_symbol)end as label,sum(case when fpi_flow > 0 then amount_usd else -amount_usd end) as amount_usd-- ,amount_usdfrom query_2224326group by 1, 2