July 30, 2010  
Register   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Sorting on specific criteriaSorting on specific criteria
Previous Previous
 
Next Next
New Post
 3/11/2010 9:54 PM
 

I have a report where the data is Grouped on a field named "IssueStatus".  Values for this field include Closed, Closed Pending, Monitoring, Open, and PAR.  My cahllenge is that I want to sort in something other than alphabetical order.  I'd like to see Open issues first, then PAR, then Monitoring, then Closed Pending, and finally, Closed. Do I need to create a sort expression in the group level Tablix?

Regards,

Bill

New Post
 3/11/2010 10:26 PM
 

Hi Bill,

As often, there are several approaches you can take to solve this.

You could use a dataset calculated field (a field that you create within the report designer) that uses an expression such as:

=switch(your_field=”Open”, “A”, your_field=”PAR”, “B”, your_field=”Closed Pending”, “C”, your_field=”Closed”, “D”)

You would then use this new field for grouping – though you would display your original field.

 

If you are using a final “SqlQuery” statement within your query, you could add a column using a CASE construct in order to achieve the exact same result as explained above. You would then use this new field for grouping – though you would display your original field.

Finally, your idea of using an expression instead of a field for grouping should work as well. In that case, you should be able to use the exact same expression that is written above.

Let me know if I did not clarify enough.

Regards,


Frederic LATOUR
ENESYS
New Post
 3/18/2010 6:35 PM
 
 Modified By BillFM  on 3/18/2010 7:36:31 PM

Frederic,

Thanks for your reply and the suggestions therein.  They helped me a lot.  In the end, I used your suggestion of an expression, which I inserted as a sort option in Group properties.  It works very well.

I always appreciate both the quickness and the quality of the responses I get when posting to the Enesys Forum.

Sincerely,

Bill

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Sorting on specific criteriaSorting on specific criteria

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement