Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

How to Divide Multiple Counts?

edited Apr 20, 2017 10:30AM in Reporting & Analytics for B2C Service 2 comments

Content

I've been stuck with this problem for a few days and have searched fairly extensively to no avail.

I have a series of columns that are counting IF statements.  For the final column, the idea is to count all of these IF columns then divide them by the count of unique incidents along the lines of;

count(if(incidents.c$enq_chnnl_cst_bol=1,1))+count(if(incidents.c$enq_chnnl_outreach_bol=1,1))+count(if(incidents.c$enq_chnnl_other_bol=1,1))+count(if(incidents.c$enq_type_online_bol=1,1))/count(*)

This doesn't seem to work (see screenshot) and either does replacing count(*) with count (distinct incidents.ref).  I think i'm approaching the logic wrong here but I'm damned if I can work out what I should be doing instead.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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