Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Help with formula in Crystal 10 Post Reply Post New Topic
Author Message
eleni66
Newbie
Newbie


Joined: 03 Jun 2010
Online Status: Offline
Posts: 4
Quote eleni66 Replybullet Topic: Help with formula in Crystal 10
    Posted: 03 Jun 2010 at 5:09am
I'm relatively new to Crystal, and am trying to create a formula that I would assume is simple...Yet I can't figure it out.
 
Basically I'm reporting on answers from a survey that was issues. I would like to report on how many respondents answered A, B, or C for each question. For example:
 
Question 1: Did you find service a) good b) acceptable c) poor
 
I would like to show that out of say, 100 surveys, i have data which shows that xpercentage answered 'a' to Question 1, xpercentage answered 'b' to Question 1 etc....
 
And I would do this for every question.
 
Can somebody please help me? I am in a time crunch. Thank you!!
 
Eleni
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 03 Jun 2010 at 5:21am
Is your data set as one row per survey with a column per response?
or
One row per response?
IP IP Logged
eleni66
Newbie
Newbie


Joined: 03 Jun 2010
Online Status: Offline
Posts: 4
Quote eleni66 Replybullet Posted: 03 Jun 2010 at 5:24am
One row per response
 
(ps. i wasn't expecting such a quick response! Thanks!)
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 03 Jun 2010 at 5:29am
Group on the question (group1)
then group on the response (group2)
suppress details
Insert a summary as a count of response field at group2 set as a percentage of group 1
IP IP Logged
eleni66
Newbie
Newbie


Joined: 03 Jun 2010
Online Status: Offline
Posts: 4
Quote eleni66 Replybullet Posted: 03 Jun 2010 at 5:59am
Sorry, it's actually one row per survey with a column per response!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 03 Jun 2010 at 7:05am
That is a little harder.
One way would be to use Running Totals. you will need 3 per question.
Examples:
name=Q1_A
Field=SurveyID# (Primay Key)
Type of summary=DistinctCount
Evaluate=use a formula
table.Answer1field='A'
Reset=Never
place on Report footer
to get the % create a formula field as
{#Q1_A} % DISTINCTCOUNT({table.SurveyID}) and place on report footer
 
 
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.046 seconds.