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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Tab Summary Operation

Status
Not open for further replies.

TerriO

Technical User
Jan 9, 2002
84
US
CR 9

I have to create a cross tab (manual Cross tab not an option because the columns are dynamic)

column Survey questions 1 2 3

row
Sales person % of yes for each question

Returned to me is the Count of yes, count of yes and no, count of no... problem , I can create a formula (yes/total yes/no) to give me the percentage but the cross tab wants to do a summary function on the value which is giving erroneous values. Is there anyway around this?

Terri
 
Hi Terri,

Create a formula that returns 100 for "Yes" and 0 for "No"

Use the CrossTab to average that formula.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Just to clarify, the technique above requires access to the raw records. If all you have in the database is summary information per sales rep x question, you won't be able to use it.

hth,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 

Salesperson Metric Yes Count No Count YES/NO
Terri Courtesy 3 1 4



The above is the data returned. I am not sure how to use your solution, if its applicable. Could you explain a little more, if I need it for future reference?

Terri
 
If you have access to the detail data, then the solution above will work. If the data source contains only the totals, it will not.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
So there is no other solution?

Terri
 
Can you specify if you have access to the detail records? It is till not clear to me.

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Can you be more specific on your solution, I can try to get the data in that format.

Terri
 
Good.

OK, imagine you have 10 detail records for one sales person and one question. 4 of them are "Yes" (100) and 6 of them are "No" (0).

Averaging the 100 or 0 formula would return 40,
which is exactly the percent Yes. Just turn on the Percent sign and you are done... :eek:)

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
I am still struggling got the data back returning only the salesperson, question , and a yes column and a no column.

Terri
 
THANK YOU SO MUCH FOR YOUR HELP.... !!!!!

Terri
 
Glad it all came together for you... :eek:)

Actually, you didn't need a 'yes' column and a 'no' column. You just need the answer column as the basis for the 100_or_0 formula.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top