Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Running Total in report header? Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Sep 2011 at 7:53am

Does your raw row level data (after joining your tables and no formatted or grouped) looks like this?

Host            Host status           Guest       Guest status
John Doe     registered              Tim             Registered
John Doe     registered               Bill             Registered
John Doe     registered              Jane            Unregistered
John Doe     registered              Frank          Unregistered
Mark Doe    unregistered           Mary           Registered
Mark Doe    unregistered           Jill              Registered
Mark Doe    unregistered           Andy          Registered
IP IP Logged
JFinzel
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Location: United States
Online Status: Offline
Posts: 49
Quote JFinzel Replybullet Posted: 28 Sep 2011 at 6:00am
Precisely.


Edited by JFinzel - 28 Sep 2011 at 6:04am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Sep 2011 at 6:14am
I think I understand.
As an aside, IMO, it is easier to look at raw row level data after tables joins and select expert is applied to see what your overall data looks like and then make designa nd calulation decisions based on that, hence my question as to what the 'raw' data is like. Report formatting tends to confuse or hide issues that the raw data exposes.
 
1.what do you link Host table to Guest table on? the Host ID?
2. Do you have rights to make a view, stored proc or a crystal command?


Edited by DBlank - 28 Sep 2011 at 6:15am
IP IP Logged
JFinzel
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Location: United States
Online Status: Offline
Posts: 49
Quote JFinzel Replybullet Posted: 28 Sep 2011 at 7:08am
Thank you much for the help and advice.  I will keep that in mind.

(1) There are two tables:
Prt (Host)
PrtIDKey  Field 1  Field 2 etc...   PrtGst_LINK
1                                                1
2                                                2

PrtGst (Guests)
PrtGskIDKey  Field 1   Field 2 etc....   PrtGst_LINK
1                                                        1
2                                                        1

The tables are linked by "PrtGst_LINK", which is simply an ID number, 1 for each host.

(2) I have full access over the database and reports, however I do not believe I have ever done those things.


Edited by JFinzel - 28 Sep 2011 at 7:14am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Sep 2011 at 7:17am
The only way I see doing this without a command, view or stored proc (or something similar if you are not using a SQL db) is using sub reports which I hate to do.
In a view, stored proc, command i would union HOST to GUEST also creating another field inserting NULL if the status='unregistered' and a PK or a 1 if the status='registered'
then join this unioned result back to HOSTS table.
this way you end up with
John Doe     registered              Tim             Registered         1
John Doe     registered               Bill             Registered         1
John Doe     registered              Jane            Unregistered     NULL
John Doe     registered              Frank          Unregistered     NULL
John Doe     registered              John Doe   Registered          1
Mark Doe    unregistered           Mary           Registered         1
Mark Doe    unregistered           Jill              Registered          1
Mark Doe    unregistered           Andy          Registered          1
Mark Doe     unregistered          Mark Doe   Unregistered       NULL
 
IP IP Logged
JFinzel
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Location: United States
Online Status: Offline
Posts: 49
Quote JFinzel Replybullet Posted: 28 Sep 2011 at 7:28am
I haven't done a view, stored proc command, but perhaps I will look into seeing how this might work.  I have a really busy week so can't play around with it now, but thank you much for the help!
IP IP Logged
<< Prev Page  of 2
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.