Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I'm trying to count the number of times a consultant (RACF) hits 20 surveys (ConExp) each month. My syntax is below. Key is a concatenate of RACF and Month.
QualifiedConsultant:
left joinloadKey,
if(count(ConExp)>=20, 'Qual','NotQual') as QualCon
Resident MyCustomergroup by Key;
left joinLoad
RACF,
count( distinct QualCon ) as QualVol
Resident MyCustomer
group by RACF;
hope this helps: