Query editor
selectsum (case when presale_profit_label <> 'N/A' then 1 else 0 end ) as total_participants,-- 'Total Participants'sum (case when presale_profit_label <> 'N/A' then presale_amount else 0 end) as total_acquired_amount, -- Total Acquired Amountsum (case when presale_profit_label <> 'N/A' then presale_spent_usd else 0 end) as total_usd_raised, -- Total USD Raisedsum (case when presale_profit_label = 'Profit' then 1 else 0 end) as profit_particioants, --'Profit Participants'sum (case when presale_profit_label = 'Loss' then 1 else 0 end) as loss_particioants, --'Loss Participants'sum (case when presale_profit_label = 'Profit' then presale_profit_usd else 0 end) as presale_usd_total_profit, -- 'P USD Total Profit'sum (case when presale_profit_label = 'Loss' then presale_profit_usd else 0 end) as presale_usd_total_loss, -- 'P USD Total Loss'sum (case when presale_profit_label <> 'N/A' then presale_profit_usd else 0 end) as presale_usd_net_profit, -- 'P USD NET Profit'sum (case when trade_profit_label <> 'N/A' then 1 else 0 end) as total_traders, -- 'Total Traders'sum (case when trade_profit_label = 'Profit' then 1 else 0 end) as profit_traders, --'Profit Traders'sum (case when trade_profit_label = 'Loss' then 1 else 0 end) as loss_trader, --'Loss Traders'sum (case when trade_profit_label = 'Profit' then trade_profit_usd else 0 end) as trade_usd_total_profit, -- 'T USD Total Profit'sum (case when trade_profit_label = 'Loss' then trade_profit_usd else 0 end) as trade_usd_total_loss, --'T USD Total Loss'sum (case when trade_profit_label <> 'N/A' then trade_profit_usd else 0 end) as trade_usd_net_prfit -- 'T USD NET Profit'from query_4324812