Count num. of customers with sales grand total >=100

Zaoka

New Member
Joined
Sep 2, 2015
Messages
19
Hi,

Can you help me with the creation of custom measurement that would count number of customers that have Grand total sales greater than 100$

I created this measurement, that count active customers per Sales person and brand if net sales per brand is greater that 0

Code:
=COUNTROWS(FILTER(ADDCOLUMNS(SUMMARIZE(SalesSource;SalesSource[DSDBC]);"zaoka";MAXX(VALUES(SalesSource[Brand]);CALCULATE(SUM([Net sales value $]);ALL(SalesSource[Net sales value $]))));[zaoka]>0))

but i don't know how to add code that would first check sales grand total per customer and if sales is >=100$ then count that customer as active per brand.

This is Example of data

HTML:
https://www.dropbox.com/s/79dh21slo42c1hi/Count%20example.xlsb?dl=0
 
I don't think i can normalize data, because this is daily sales, and some thing are always changing.[FONT=arial, sans-serif] [/FONT]

I thought I could combine my code from first post with your solution.... somehow to put in this part

SUM ( Sales[Net sales value $] ),
ALL ( Products[Brand] )
) >= 300
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I did it, thanks a lot for the idea and the help

Code:
=COUNTROWS(FILTER(ADDCOLUMNS(SUMMARIZE(SalesSource;SalesSource[DSDBC]);"zaoka";MAXX(VALUES(SalesSource[Brand]);CALCULATE(SUM([Net sales value $]);ALL(SalesSource[Net sales value $]))));[zaoka]>0&&CALCULATE(SUM(SalesSource[Net sales value $]);ALL(SalesSource[Brand]))>=300))

So for all other users this code count unique customers that have total Sales greater than e.g. 300 and then count customers with sales per brand greater than 0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top