Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Random numbers in running total field Post Reply Post New Topic
Author Message
movember
Newbie
Newbie


Joined: 25 Nov 2009
Online Status: Offline
Posts: 2
Quote movember Replybullet Topic: Random numbers in running total field
     Posted: 25 Nov 2009 at 5:10pm
I have a report which tracks transactions which uses the view below.

In crystal i added a running total field. It summaries transactions (evaluating for each record) and resets on change of year.

When i run the report on my laptop - sql2008 express, it works fine.
I created the same view on sql2008 workgroup server, pointed the report to the new datasource location and everytime i refresh the report the running total field numbers change randomly. Why is it doing this?

SELECT      YEAR(paymentDate) AS 'Year',
          datename(mm, paymentDate) AS 'Month',
          datepart(wk,paymentDate) AS 'Week',
          count(*) AS [transactions],
FROM Transactions
where Status='2'
and Cancelled='0'
and PaymentDate between '2008-10-01 00:00:00.000' and GETDATE()
GROUP BY YEAR(paymentDate), MONTH(paymentDate),DATEPART(wk,paymentDate), title, amount, paymentDate
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 30 Nov 2009 at 1:50pm
Are both of your datasources semi-static (i.e., updated on a daily, weekly, etc. basis) or dynamic (i.e., on-line transactions).  If the express datasource was semi-static and the workgroup dynamic, then your numbers could change everytime you run the report, since you are using 'todays' date for then end date, and I can only assume that there is a time period where the status and cancelled can change.
 
Have you just run the SQL code from the servers and see if the number of records change?
IP IP Logged
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