I have a table with columns: Team, Date, Customer, Task Description, Time, and Week Number. I want to count the number of instances a customer appears on a single week. My issue is that there are instances wherein a customer appears multiple times on a given day. It should count only as 1 per day. For example, in the table below, the total count for customer 1A for Week 27 should only be 1 not 2 for Team A. For customer 1B, the total count should be 2 for Team A since 7/3 and 7/4 are different dates and they belong to week 27. I need the customer count per week per team. Any ideas?
Team | Date | Customer | Task Description | Time | WkNum |
A | 07/03/2023 | 1A | XXX | 3 | 27 |
A | 07/03/2023 | 1A | XXX | 4 | 27 |
A | 07/03/2023 | 1B | XXX | 4 | 27 |
A | 07/04/2023 | 1B | XXX | 2 | 27 |
A | 07/04/2023 | 2A | XXX | 4 | 27 |
B | 07/03/2023 | 2A | XXX | 1 | 27 |
B | 07/04/2023 | 2A | XXX | 3 | 27 |
B | 07/04/2023 | 2A | XXX | 1 | 27 |
C | 07/05/2023 | 2B | XXX | 4 | 27 |
C | 07/05/2023 | 2B | XXX | 2 | 27 |
C | 07/05/2023 | 2B | XXX | 1 | 27 |
C | 07/05/2023 | 2B | XXX | 2 | 27 |