Query editor
selectcount(*) as lbp_participants,sum(token_acquired) as total_acquired_amount,sum(case when profit_loss_label = 'Profit' then 1 else 0 end) as profit,sum(case when profit_loss_label = 'Loss' then 1 else 0 end) as loss,sum(case when profit_loss_label = 'Breakeven Sale' then 1 else 0 end) as breakeven,sum(total_usd_lbp) as total_raised,sum(case when profit_loss_label = 'Profit' then profit_loss else 0 end) as total_profit,sum(case when profit_loss_label = 'Loss' then profit_loss else 0 end) as total_loss,sum(case when profit_loss_label = 'Profit' then profit_loss else 0 end) + sum(case when profit_loss_label = 'Loss' then profit_loss else 0 end) as net_profitfromquery_4086836