Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Average Calculation in Charts Post Reply Post New Topic
Author Message
Khalid_CR
Newbie
Newbie
Avatar

Joined: 12 Jun 2015
Online Status: Offline
Posts: 1
Quote Khalid_CR Replybullet Topic: Average Calculation in Charts
    Posted: 14 Jun 2015 at 1:14am
1. I have a data as below
  TEAM1       TEAM2  
  Sales in $ Qty Avg Price Sales in $ Qty Avg Price
WK1 300 25 12.00 325 27 12.04
WK2 250 21 11.90 283 23 12.30
WK3 248 21 11.81 287 24 11.96
WK4 275 23 11.96 291 24 12.13
WK5 297 25 11.88 292 24 12.17
Total 1370 115   1478 122  
5 Week Average 274 23 11.91 295.6 24.4 12.12
 
and I am doing a chart 1 showing the Qty per Team per Week, Chart 2, showing Sales per Team per Week, 3. Chart 3 showing Avg Price per Week Per Team.
 
To get the average of Qty per Team per Week is possible in Charts, but I am facing challenges in finding the Average of Sales per Team per Week and showing them as a legend as Team 1 - Avg Sales - 23, Team B- Avg Sales 24
Similarly for Average Price in Chart 3, need to Show Team 1 - Avg Price - 11.91, Team 2 - Avg Price, 12.12
Can anybody please advice either on formula or way out of this.
 
I tried a cross tab, where I get these values, but I cannot link or assign variable to this cross tab to get this values and put them in the chart as legends
 
2. I have a table in which I have a start date as dd-mm-yyyy, in another column I have time duration in numerical format, as 2.12 (which is 2:25 minutes) and in another column I have end date and time as dd-mm-yyyy hh:mm:ss. I need to find the start time and suffix the start with the said time and show the start time as dd-mm-yy hh:mm
 
example -
Start Date - 01-05-2015
Time Duration - 3.45 (Numerical Format)
End Time - 02-05-2015 0:45:00
 
Now I want to show the start date and time as
End Date Time - Time Duration = Start Date and Time
02-05-2015 0:45:00 - 3.45 (either convert to hours) = 01-05-2015 21:00:00
 
I tried DollarFR to convert 3.45 to 3:45, but when i tried to deduct it from End Time, it gives me a string error, sometimes a number or a date error. Do not know where the issue lies.
Also tried converting all dates and time to numbers and then doing the deduction, but this also doesnt work.
 
Any solution or formula or function. Please help.
 
 
I need to find and add the
Khalid
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.015 seconds.