COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: cognosun on 07 Sep 2012 01:15:01 PM

Title: Row numbers - ordering - Update issue
Post by: cognosun on 07 Sep 2012 01:15:01 PM
We have a string column( say 'Random') with 4 values in it say...Pen, Paper, Ink, Sketch.

When user drags 'Random' column in a list...he should see values in this order...( Sketch, Ink, Paper,Pen)..which is not related to ascending or descending sort.

So I wrote a case expression by assigning numbers ( 4 numbers --> 4 strings) to above strings and sorted it as expected and issue resolved.

But now the original problem is what if tomorrow if this column ( 'Random')  get's update with additional values like Book, Envelope etc. !!!

User is expecting that all the other values after 4th value may fall randomly anywhere....he's fine with ordering first 4 values which is already in place.

Can anyone suggest.
Title: Re: Row numbers - ordering - Update issue
Post by: tjohnson3050 on 07 Sep 2012 05:26:32 PM
In your case expression, do else 5
Title: Re: Row numbers - ordering - Update issue
Post by: cognosun on 10 Sep 2012 05:02:59 AM
Thanks John.

That is indeed the solution :-)