Hello guys,
I am struggling to find a way to make the following calculation.
I need to count the number of active customer per month per each brand, but each brand has a specific threshold. For instance:
Customer 1789 ordered 5 units of Brand X
Customer 9867 ordered 3 units of Brand X
Customer 2341 ordered 30 units of Brand X
Customer 2341 ordered 12 units of Brand Y
Considering the threshold for product X is >=5 and for Y is >=10 I would have two customers for Brand X (1789 and 2341) and one customer for Brand Y (2341).
I am using this function, but when I put the second condition (brand) it does not work...
=CALCULATE
(
DISTINCTCOUNT([Cliente]);
DATESBETWEEN(Tabela1[Data]; "01/01/2015"; "31/12/2015");
Tabela1[Quantidade]>=5
)
Any help from the genius out there?