CrystalUserGuy
Technical User
Here's the scenario:
I have the following tables:
SALES
PROJECTS
QUOTAS
SALES is connected to PROJECTS with a projectID field common to both tables.
PROJECTS is connected to QUOTAS with a salesID field common to both tables.
SALES has some projectID fields which are null.
PROJECTS has some salesID which are null.
In order to have complete sales data show up for the report, I have linked via left outer joins: SALES to PROJECTS
to QUOTAS.
Now, my goal is to compare sales data (SALES) to sales quotas (QUOTAS) while going through PROJECTS to link SALES
and QUOTAS.
My problem is that when I display subtotals of sales (SALES) by salesrep (in QUOTAS), the totals come out ok. When
I pull quotas (QUOTAS) by sales rep, the info comes out ok. But, QUOTAS is a table with a hierarchical quota
system, in that there exist the fields:
VP Manager Sales Rep Quota
If I try to summarize the data further, by manager for instance, I get the correct actual sales total from SALES but
I cannot summarize the QUOTAS without getting a massive quota which doesn't add up to the actual instances within
the Quota table (ie. if Manager has 3 sales reps with quotas totalling $100k, instead I get $100,000,000).
Do you have any suggestions? I've tried to play around with subreports and variables but I'm not familiar enough
with these concepts in Crystal yet.
I have the following tables:
SALES
PROJECTS
QUOTAS
SALES is connected to PROJECTS with a projectID field common to both tables.
PROJECTS is connected to QUOTAS with a salesID field common to both tables.
SALES has some projectID fields which are null.
PROJECTS has some salesID which are null.
In order to have complete sales data show up for the report, I have linked via left outer joins: SALES to PROJECTS
to QUOTAS.
Now, my goal is to compare sales data (SALES) to sales quotas (QUOTAS) while going through PROJECTS to link SALES
and QUOTAS.
My problem is that when I display subtotals of sales (SALES) by salesrep (in QUOTAS), the totals come out ok. When
I pull quotas (QUOTAS) by sales rep, the info comes out ok. But, QUOTAS is a table with a hierarchical quota
system, in that there exist the fields:
VP Manager Sales Rep Quota
If I try to summarize the data further, by manager for instance, I get the correct actual sales total from SALES but
I cannot summarize the QUOTAS without getting a massive quota which doesn't add up to the actual instances within
the Quota table (ie. if Manager has 3 sales reps with quotas totalling $100k, instead I get $100,000,000).
Do you have any suggestions? I've tried to play around with subreports and variables but I'm not familiar enough
with these concepts in Crystal yet.