COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: vraju.springs@gmail.com on 26 Jun 2012 07:38:43 AM

Title: Custom sorting
Post by: vraju.springs@gmail.com on 26 Jun 2012 07:38:43 AM
Hi all I have a requirement . I have to sort products in custom order that is user required order it neithe assending of no descending. I have tried my best but unable to accomplish.Please help me
Title: Re: Custom sorting
Post by: wyconian on 26 Jun 2012 08:06:20 AM
Hi

Possibly the easiest way to do this is to have 2 columns, one sorted ascending, the other sorted descending.  You can then add render variables to the columns so you only render the one the user chooses.  You will need a prompt for the user to choose ascending or descending.

Bit of a fudge but the user thinks they are getting what they asked for :)
Title: Re: Custom sorting
Post by: pricter on 26 Jun 2012 08:08:10 AM
How to you want to order them?

Do you have a data item that specify the custom order?
Title: Re: Custom sorting
Post by: cognos79 on 26 Jun 2012 01:22:57 PM
 you just need  to render. You dont need a data item for this ....
One column in ascending order and other in descending order .. so that it is rendered depending on the selection.
Title: Re: Custom sorting
Post by: blom0344 on 26 Jun 2012 01:42:32 PM
Unfortunately custom sorts are not a strong point with WEBI BI reporting tools. With client tools this was normally possible as the data was fetched at random first and then an ordering could be applied.

With a limited set of values you can write a CASE statement assigning an index to values and sort on this dataitem