arghh, not having access to cognos really handicaps me... for now i can think of the following two solutions (which i cant verify 100%)
Solution 1:1. Calculate Total (Credit buys for Customer).
2. Create another data item in the query and have the following expression.
Quote
IF ( [Total of credit buys] > 0 )
THEN (1)
ELSE (0)
and have Total as the aggregate function for this data item.
Solution 2: 1. Have two queries each with the following data items.
Customer
Month
Normal Buys
Credit Buys
No. of customers2. In Query1 have everything normal (directly pulled from model) except for the No. of customers which should be 0
3. In Query2 all data items should be the same as Query 1 except No. of customers.
3. Add a filter in Query2 as [Credit Buys]>0
4. In [Query2].[No. of customers] have count(distinct Customer) which should give you the total no. of unique customers with credit buys.
5. Union these two queries and have the report pulled out of the final query.
Please let us know if this works for you.