Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Destributing a value based on percentage Post Reply Post New Topic
Author Message
npatel
Newbie
Newbie


Joined: 16 Dec 2010
Location: United States
Online Status: Offline
Posts: 20
Quote npatel Replybullet Topic: Destributing a value based on percentage
    Posted: 25 Jul 2012 at 6:25am
Is there a way to create a formula that will take the first value in a group and then distribute that value to the other values in the group. For example:

Currently Displayed like this:

Source    Yes Count     Cost
ABC          1        100.00
ABC-1        6          0.00
ABC-2        3          0.00

Want it to look like this:

Source    Yes Count     Cost
ABC          1          10.00
ABC-1        6          60.00
ABC-2        3          30.00

FYI, I need these to display in group footer 2. Any help would be appreciated. Thank You.

-Neal
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 25 Jul 2012 at 6:47am

Hi

You will have to write a formula to arrive this.  Follow these steps :
 
--create a formula like :
 
{YesCount}* (sum({cost})/ Count(YesCount})
 
You need to arrive these sum(cost) and count(yescount) based on your group level.  And place this formula in place of Cost.
 
 
Thanks,
Sastry
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.016 seconds.