I have many dimensions in my cube like Customer, Region, Products, Period, Measures etc. I want to get the count of the customers who have bought a certain product.
I have added a measure 'CustomerCount' to the measures dimension. I have written a TI Process (Data Tab)
Code: Select all
Sales = CellGetN (Cube, d1, d2....,Sales)
CustomerCount = CellGetN (Cube, d1, d2....,CustomerCount)
IF ((Sales <> 0) & (CustomerCount < 1));
CellPutN (1,Cube, d1, d2....,CustomerCount)
ENDIF;
But I only want to see how many Customers bought a certain product NOT how many times they bought this product. For example:PRODUCT SALES CustomerCOUNT
Customer A Product1 300 50
Customer A Product1 250 22
Customer B Product3 170 15
Customer C Product4 0 0
Please suggest me some solution ASAP. ThanksPRODUCT SALES CustomerCOUNT
Customer A Product1 30 1
Customer A Product1 20 1
Customer B Product3 10 1
Customer C Product4 0 0