waldopepper
Programmer
Hi!
Not sure if I'm doing something stupid here (likely) but I have a variable that contains either blank value or 'Yes'.
What I've done is create a Formula from this
if {vw_Crystal_All.bkp_marketing_Posters} <> '' then 1 else 0
Then created a summary (sum) per group so I have a count of the number of records that have answered 'Yes' in each group.
What I now need to do is also show a percentage of 'Yes' per group. Copying the summary I've already created and changing it to a percentage of that variable brings back a percentage that is not right.
First group:
35 'Yes'
1,026 total records
So the percentage should be about 3% but it's displayed as 13%.
Is this the wrong approach and do I need to create a new Formula to calculate this?
Crystal Reports v10
SQL 2000
Not sure if I'm doing something stupid here (likely) but I have a variable that contains either blank value or 'Yes'.
What I've done is create a Formula from this
if {vw_Crystal_All.bkp_marketing_Posters} <> '' then 1 else 0
Then created a summary (sum) per group so I have a count of the number of records that have answered 'Yes' in each group.
What I now need to do is also show a percentage of 'Yes' per group. Copying the summary I've already created and changing it to a percentage of that variable brings back a percentage that is not right.
First group:
35 'Yes'
1,026 total records
So the percentage should be about 3% but it's displayed as 13%.
Is this the wrong approach and do I need to create a new Formula to calculate this?
Crystal Reports v10
SQL 2000