I want to calculate percent based on count of events. Basically, I want to calculate successful login attempts on a website. Something like below count(successful_attempts)/count(total_attempts)
successful_attempts and total_attempts are recorded as events in login_attempts column.
How would I achieve this?