I have a list of sales data that I am attempting to create a distinct count of customers with orders on a YTD basis. I had tried to use distinct count in a pivot table but this gives distinct count each month rather than Feb YTD distinct count. If Customer A has orders in Jan, Feb and March, I don't want them counted 3 times in the March customer count. You can see in the example, order count is distinct from the customers on a YTD basis.
Book2 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Salesperson name | Sold Date | Customer | Jan | Feb | Mar | Apr | ||||
2 | Donald Trump | 1/4/2024 | Customer K | Unique Customers | 10 | 17 | 22 | 25 | |||
3 | George Bush | 1/9/2024 | Customer L | Total Orders YTD | 10 | 21 | 28 | 34 | |||
4 | Joe Biden | 1/10/2024 | Customer M | ||||||||
5 | Barak Obama | 1/11/2024 | Customer N | ||||||||
6 | Donald Trump | 1/12/2024 | Customer O | ||||||||
7 | George Bush | 1/12/2024 | Customer P | ||||||||
8 | Joe Biden | 1/17/2024 | Customer Q | ||||||||
9 | Barak Obama | 1/23/2024 | Customer A | ||||||||
10 | Barak Obama | 1/24/2024 | Customer R | ||||||||
11 | Donald Trump | 1/25/2024 | Customer B | ||||||||
12 | Donald Trump | 2/12/2024 | Customer P | ||||||||
13 | George Bush | 2/12/2024 | Customer R | ||||||||
14 | Joe Biden | 2/13/2024 | Customer D | ||||||||
15 | Barak Obama | 2/13/2024 | Customer W | ||||||||
16 | George Bush | 2/14/2024 | Customer C | ||||||||
17 | Joe Biden | 2/14/2024 | Customer D | ||||||||
18 | Donald Trump | 2/20/2024 | Customer W | ||||||||
19 | Barak Obama | 2/22/2024 | Customer T | ||||||||
20 | Barak Obama | 2/26/2024 | Customer E | ||||||||
21 | Donald Trump | 2/27/2024 | Customer F | ||||||||
22 | Donald Trump | 2/27/2024 | Customer Y | ||||||||
23 | George Bush | 3/4/2024 | Customer I | ||||||||
24 | Joe Biden | 3/8/2024 | Customer S | ||||||||
25 | Barak Obama | 3/8/2024 | Customer T | ||||||||
26 | Donald Trump | 3/15/2024 | Customer U | ||||||||
27 | George Bush | 3/21/2024 | Customer V | ||||||||
28 | Barak Obama | 3/26/2024 | Customer W | ||||||||
29 | Donald Trump | 3/29/2024 | Customer X | ||||||||
30 | George Bush | 4/3/2024 | Customer Y | ||||||||
31 | Joe Biden | 4/4/2024 | Customer Z | ||||||||
32 | George Bush | 4/10/2024 | Customer W | ||||||||
33 | Joe Biden | 4/11/2024 | Customer H | ||||||||
34 | Barak Obama | 4/16/2024 | Customer I | ||||||||
35 | Barak Obama | 4/18/2024 | Customer J | ||||||||
Sheet1 |