You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Formula to subtract one column total from another column not working if one is zero

edited Jan 11, 2017 8:23PM in Reporting & Analytics for B2C Service 4 comments

Content

I want to create a formula that calculates chats offered minus chats abandoned in <10 seconds.  The following formula works if the chats abandoned in less than 10 seconds calculation is greater than zero.  If there were no chats abandoned in less than 10 seconds, the formula produces a zero for chats offered.  Any assistance would be greatly appreciated.

count(chats.requested )- (sum(if((chats.termination_event IN (3,14)) & (date_diff(chats.completed,chats.requested)<10), 1)))

 

 

Code Snippet

             count(chats.requested )- (sum(if((chats.termination_event IN (3,14)) & (date_diff(chats.completed,chats.requested)<10), 1))) 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!