Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report using a crosstab query

Status
Not open for further replies.
Jan 14, 2004
4
CA
I set up a planned sales table and an actual sales table with exactly the same stucture with the aim of doing a crosstab query to make my reporting easier. However, I identified the planned sales with a "P" in a type row and actual sales with an "a" in the type row (I used a common "sales" row to capture the dollar values). When I do my crosstab query, I get two rows for each customer (an "a" and a "p" row) with the correct numbers for each of the months - 1 to 12, with a total field taht adds up for each type.

My problem is that I'm grouping by sales rep and although each customer within the group shows an "a" and a "p" line, the rep total adds them both together and I can't figure out how to get a rep total for both "a" and "p".

I also want to show the percentage growth from plan but by using the common row "sales" for both Plan "P" and Acutal "A", I can't figure out how to do that either.

There's got to be a way, but I can't get my head round it.

I would appreciate any help.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top