Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Problem with multiple tables Post Reply Post New Topic
Author Message
ahlfri
Newbie
Newbie


Joined: 23 Aug 2010
Online Status: Offline
Posts: 2
Quote ahlfri Replybullet Topic: Problem with multiple tables
    Posted: 23 Aug 2010 at 5:01am

I have encountered a problem creating a report with two linked tables (left outer join).
I have a database with duties, associated with each duty is a couple of activties. As long as I leave the activties out of the report I can summarize information about the duties, but when I include any activity field in the report the summarized information about the duties multiplies.

I'll try to make a small example. I hope you can follow what I mean.

Example:

Before
------------------------------------------------------------
[Details]              duty 1                   duration 2.5 hours

[Report footer]  count duties =  1    sum duration = 2,5 hours

------------------------------------------------------------


After
------------------------------------------------------------
[GH 1]                  duty 1                     duration 2.5 hours
[Details]                          activity 1
                                   activity 2
                                   activity 3

[Report footer]  count duties =  4       sum duration = 10 hours
------------------------------------------------------------

Anyone who can help me sort this out?

/Ahlfri

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 25 Aug 2010 at 12:40pm
Try using a distinct count of the duties instead of a regular count.
 
-Dell
IP IP Logged
ahlfri
Newbie
Newbie


Joined: 23 Aug 2010
Online Status: Offline
Posts: 2
Quote ahlfri Replybullet Posted: 25 Aug 2010 at 7:35pm
thanks but I've solved it with a running total.
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.