Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: averages on suppliers paid days Post Reply Post New Topic
Author Message
NeilG
Newbie
Newbie


Joined: 05 Jun 2017
Online Status: Offline
Posts: 1
Quote NeilG Replybullet Topic: averages on suppliers paid days
    Posted: 13 Jun 2017 at 12:05am
Hello,
I have a report for suppliers transactions where I am working out the days difference between the invoice created date and the payment date (using datediff 'd').
The report is grouped by supplier as well, this is all OK to work out my issue is with the following.

I need to Sum the days difference in the following way
1) 30 days or less
2) Greater than 30 days but less than equal 60 days
3) Greater than 60 days

Again not to difficult but I then need to create averages for the payment criteria above.

I can't get the averages, the sums or the grouping correct for each supplier and when transactions were paid.

I have one group for supplier but should I have a group for days difference as well ?. If so how does the sums and averages work out.

I'm OK with crystal reports but first time in working out averages for multiple transactions paid at different day differences.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Jun 2017 at 8:25am
what I would do is use either variables or running totals. The idea is the same. For each detail, you are calculating which bucket it falls into, increment the variables that are specific to the bucket (total and count) then in the group footer, you can easily calculate an average for each bucket.

Unless I have the wrong problem. In which case, this might be a path the solution you need.

HTH
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.031 seconds.