Hello
I need to calculate the count of distinct records that have a value in a date field that falls within a certain range.
ID Territory Date
1 95 11/2/2002
2 95 12/5/2001
3 60 9/15/2001
4 60 9/30/2001
So, I need to ask, How many distinct records have a date between 9/1/2001 and 9/31/2001. Here I would show
Territory 60 has 2 records.
Territory 95 has 0 records.
I have the distinct count function on the ID fields but I need to take it a step further and calculate how many distinct records are within a certain date range.
I need to calculate the count of distinct records that have a value in a date field that falls within a certain range.
ID Territory Date
1 95 11/2/2002
2 95 12/5/2001
3 60 9/15/2001
4 60 9/30/2001
So, I need to ask, How many distinct records have a date between 9/1/2001 and 9/31/2001. Here I would show
Territory 60 has 2 records.
Territory 95 has 0 records.
I have the distinct count function on the ID fields but I need to take it a step further and calculate how many distinct records are within a certain date range.