Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Combining Data accross multiple lines Post Reply Post New Topic
Author Message
npatel
Newbie
Newbie


Joined: 16 Dec 2010
Location: United States
Online Status: Offline
Posts: 20
Quote npatel Replybullet Topic: Combining Data accross multiple lines
     Posted: 08 Feb 2012 at 7:42am
Hello,

I have a database table that is populated with multiple calculations, and then are listed by their unique list_id. These list_id's can be grouped under a specific source_id. In other words many list_ids can be under a single source_id. The data looks something like this:

ListID Source ID passback_id subid   out   in
342     519             1029           0        0   11
343     519             1030           0        0   58
344     519              0            1029    129   0
345     519              0            1030   1163   0

What i want to is merge list ID 342 and 344 together so that I can use the out and in columns in the same calculations. Is this possible let me know if you need more information.
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 08 Feb 2012 at 1:16pm
try to use a formula for your listID_2
if table.listID = ["342,"344"] then "342&344" else table.listID


IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 10 Feb 2012 at 12:06pm
since it is in a table, perhaps you could use a command to select table something like:
 
select * from table
 
then you could join the main datatable and the command on listID = passback_id.  Then the data would just have to be accessed from the different tables but they should appear to be on the same line
 
HTH
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