Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Summary Total on Max Timestamp Post Reply Post New Topic
Author Message
AnthonyJ
Newbie
Newbie
Avatar

Joined: 20 Nov 2007
Location: United States
Online Status: Offline
Posts: 37
Quote AnthonyJ Replybullet Topic: Summary Total on Max Timestamp
    Posted: 22 Feb 2008 at 3:38pm
Hi,

I have a table consisting of the below columns. I need to sum up all Qty Passed per Product. This is simple. I just need to create a group and Insert Group Summary on Qty Passed. Now comes the tricky part. I also need to sum up all Qty Failed where we have the maximum timestamp for each TIS #. In this case, it is 5 + 65 = 70. 

Appreciate any thoughts on how to do this computation.

 
Data
----

Product  TIS#   Qty Passed  Qty Failed     Timestamp
-------+------+-----------+------------+-------------------------
ABCD      01          100           10    02/01/2008 11:00:00 AM
ABCD      01           50            5    02/01/2008 11:30:00 AM  <-- Max Timestamp for TIS #1

ABCD      02           20           25    02/01/2008 08:00:00 AM
ABCD      02           30           35    02/01/2008 08:30:00 AM
ABCD      02           40           65    02/01/2008 09:00:00 AM  <-- Max Timestamp for TIS #2


Result
------

Product  Qty Passed   Qty Failed
-------+------------+----------------------
ABCD         240             70   (5 + 65)


 

XIR2 on Unix Solaris
CRXIR2, Oracle 9i/10g
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.