How to count number of sales per client and accumulated sales per client

ultimathor

New Member
Joined
Jan 26, 2013
Messages
3
Hi,

I have a normal sales table that includes transaction number, date, amount, user-email and a bunch of other columns. I want to calculate two more columns in PP.

The first column should count how many total purchases have been made by the particular user-email of that row. The reason is that I want to make an analysis across different countries to see if there is a difference in number of sales per user.

The second column should count how many purchases have been made by the particular user email of that row up until and including this particular sale.

I am sure the answer is quite simple but as I'm new to PP I can't seem to figure it out. Suggestions highly appreciated :-).

Thor
 
I can confirm the other arguments are ok. Not very surprising since ALLEXCEPT( Sales, Sales[user-email] ) and ALL ( Sales[date] ) do not require - or more precisely ignore - any filter context.

The FILTER expressions in these case are indeed much cleaner.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,885
Messages
6,181,579
Members
453,055
Latest member
cope7895

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