C
Claire
Hi all,
I'm not sure if this problem can be solved just with the report, or if I
have to rework the query as well.
I am counting the number of leads quoted in a week. I currently have a
query that filters out to leads that were quoted and gives the week ending
date of that quote. (I need to keep this query around anyway for a detailed
report every so often.) Off of this query I count the number of leads quoted
grouped by sales rep and by week ending date.
SELECT Count(QryQuoted_Leads.[LeadNo]) AS [CountOfLeadNo],
QryQuoted_Leads.[Full_Nickname], QryQuoted_Leads.Week_Ending
FROM QryQuoted_Leads
GROUP BY QryQuoted_Leads.[Full_Nickname], QryQuoted_Leads.Week_Ending;
My report is currently grouped by Week, and then lists the Sales Reps quotes
during that week. This has a sum of quoted leads for the week, and a running
total of leads quoted this year.
Here's my challenge: I want to have a running sum of quoted leads by Sales
Rep as well. The resulting report may look like:
1/1/09 Quotes YTD Quotes
Bob 6 6
Sue 3 3
Total 9 9
1/8/09
Bob 2 8
Sue 4 7
Joe 4 3
Total 10 18
I just found out about subreports (and I'm quite excited about them) and I
figure that may be helpful here, but I can't figure out how to do it.
Thanks for any help you can offer,
Claire
I'm not sure if this problem can be solved just with the report, or if I
have to rework the query as well.
I am counting the number of leads quoted in a week. I currently have a
query that filters out to leads that were quoted and gives the week ending
date of that quote. (I need to keep this query around anyway for a detailed
report every so often.) Off of this query I count the number of leads quoted
grouped by sales rep and by week ending date.
SELECT Count(QryQuoted_Leads.[LeadNo]) AS [CountOfLeadNo],
QryQuoted_Leads.[Full_Nickname], QryQuoted_Leads.Week_Ending
FROM QryQuoted_Leads
GROUP BY QryQuoted_Leads.[Full_Nickname], QryQuoted_Leads.Week_Ending;
My report is currently grouped by Week, and then lists the Sales Reps quotes
during that week. This has a sum of quoted leads for the week, and a running
total of leads quoted this year.
Here's my challenge: I want to have a running sum of quoted leads by Sales
Rep as well. The resulting report may look like:
1/1/09 Quotes YTD Quotes
Bob 6 6
Sue 3 3
Total 9 9
1/8/09
Bob 2 8
Sue 4 7
Joe 4 3
Total 10 18
I just found out about subreports (and I'm quite excited about them) and I
figure that may be helpful here, but I can't figure out how to do it.
Thanks for any help you can offer,
Claire