Query editor
with daily_users as (select * from query_6263416 -- intermediary results)select casewhen action = 'earn' then 'Earn'when action = 'multiply' then 'Multiply'when action = 'borrow' then 'Borrow'else 'Other' endas action, count(distinct position_id) as positionsfrom daily_userswhere action != 'liquidate'group by 1