Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Distinct Count (customer) x Brand x Threshold

$
0
0

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? Smiley Happy


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>