Query editor
selectblock_date,casewhen fpi_flow > 0 thenconcat('Bought on ', project)elseconcat('Sold on ', project)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