Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Percentage of total

$
0
0

Hi there,

I have a report:

QuestionGroup

  Question

     Answer 1 (10) ->nr of persons who answered "Answer 1"

     Answer 2 (3)

     Answer 3 (7)

     Answer 4 (0)

  Total: 20
  • There are 3 groups: QuestionGroup->Question->Answer
  • Total is a running total field (count), which resets every question (lets call it totalAnswersPerQuestion)
  • Nr of persons who answered a specific question is a running total field (count), which resets every answer
<div>My goal is to show percentage of people who answered specific questions (instead of having Answer 1 (10), heaving Answer 1 (50%)). </div> <div>It would be good to have a formula field like "nrPeoplePerAnswer/totalAnswersPerQuestion*100". However, totalAnswersPerQuestion is calculated progressively, which means that when calculating nrPeoplePerAnswer at Answer 1, totalAnswersPerQuestion is 10 at the moment, which means the result is 100% (10/10*100).</div> <div></div> <div>Is there any way to do this?</div>

Thanks in advance.

MP


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>