Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Keeping sort order after joining two data sets.
Keeping sort order after joining two data sets. [message #1385351] Thu, 05 June 2014 18:54 Go to next message
Neil Wang is currently offline Neil WangFriend
Messages: 105
Registered: July 2009
Senior Member
Hi,

Let's say I have two data sets.
The first data set is "Column" and it has two fields which are "Column Name" and "ID".
The second data set is "Attribute" and it has two fields which are "Attribute Name" and "ID".

I joined these two data sets by using the ID field. It looks like the result is sorted by "ID". Is it possible to keep the sort order based on "Column Name"? The "Column Name" field is not sorted alphabetically and I would like to keep the sort order that way.

Please advise.

Neil
Re: Keeping sort order after joining two data sets. [message #1385361 is a reply to message #1385351] Thu, 05 June 2014 19:51 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

In your "column" dataset, add a computed column that gives you a running count of your rows. After you've joined and the order has changed, you can use this row to sort the resulting dataset.

Michael

Developer Evangelist, Silanis
Re: Keeping sort order after joining two data sets. [message #1385364 is a reply to message #1385361] Thu, 05 June 2014 20:22 Go to previous messageGo to next message
Neil Wang is currently offline Neil WangFriend
Messages: 105
Registered: July 2009
Senior Member
thanks a lot!

Neil
Re: Keeping sort order after joining two data sets. [message #1385367 is a reply to message #1385364] Thu, 05 June 2014 21:02 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Not a problem! Smile

Michael

Developer Evangelist, Silanis
Previous Topic:Page number and total page
Next Topic:Getting a "The file has been deleted" error that won't allow me to edit some reports
Goto Forum:
  


Current Time: Fri Apr 26 07:59:22 GMT 2024

Powered by FUDForum. Page generated in 0.02954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top