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

Create a Survey Report

Status
Not open for further replies.

Clundey

Technical User
Jul 20, 2001
42
US
I am trying to create a report to tally the results of a survey. It comprises 30-40 questions with up to 9 different responses.
I am just looking to count up each response to each question in the least painful way.

Am I doomed to 30*9 running totals?

Thanks for any input!
 
I take it that you have one record per response with 30 fields, each representing the answer to a different question. If that's the case, one option would be to create 30ish cross-tab reports in the report footer. Another option is to create formulas to add 1 to the appropriate counter if the right condition is met, but that would be many many formulas. Ideally, if each survey had multiple records (one for each question) with a question identifier and an answer field, you could get away with just one cross tab report in a group footer. Also, you could do some work in a stored procedure to get a working data set if you are using a SQL backend.
 
Doom is a good game :eek:)

If you are willing to accept the format limitations, you could use a CrossTab (or several CrossTabs if the possible answer codes are not uniform.

hth,
- Ido CUT (Crystal UTilities): e-mailing, exporting, electronic bursting & distribution of Crystal Reports:
 
The fields are the questions. Each record is a survey.
 
Add one Cross-tab per question in the report footer.
Use each question field as both the column field and summarized field of its cross-tab. Set it to count. You don't need a row field. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Thanks Ken! That will work just right!

clundey
 
Cross-tabs don't support percentages until v9 Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top