I need to calculate the percentage in a table card, the table like this:.
I want to calculate the % based on Sent. e.g delivered % =4800/5000, Total bounce % =120/5000.
I wrote this beast mode, but return nothing, can you please let me know what is not working.
Thank you.
Olivia
SUM(
CASE
WHEN `Category` IN ('Delivered','Total Bounce','Opens','Unsubscribes')
THEN (`total`) END)
/(SUM(
CASE
WHEN `Category` IN ('Sent')
THEN (`total` )
END))
Category | total | % |
Sent | 5000 | |
Devliered | 4800 | 96% |
Total bounce | 120 | 2.4% |
Opens | 900 | 18% |
Unsubscribes | 24 | 0% |