To simplify this process, use a Running Total and select distinct count for the customer id, group by the CDS field, and in the evaluate use a formula place:
You need to insert a running total where you select distinct count of customer ID, and then select "Use a formula" in the evaluation section:
{t.CODE}='MKT' OR
{t.CODE}='MBR' OR
{t.CODE}='COM'
Then choose reset on change of group: {t.CDS} group. Place the running total in the group footer. This will give you a distinct count of those customers who have one or more of the above codes.
Your original formula, if placed in a group footer, would only give you the distinct count of ALL customer IDs in the group--if the last record in the group met your criteria.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.