Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Order by in SSRS report

My report is supposed to be ordered by completionDate in ascending order. I can get the order in my T-SQL query but when I populate it onto an SSRS report it doesn't seem to carry the order. I'm using SQL Server 2008. and the date is in Varchar. Any help will be highly appreciated.

Avinash.

like image 859
Avinash Avatar asked Mar 07 '11 14:03

Avinash


People also ask

What is interactive sorting in SSRS?

Interactive sorting can be used to enable a user to toggle between ascending and descending order for rows in a table or for rows and columns in a matrix.


1 Answers

Go into the properties of your table (right-click, properties) and set the Sort property to be by completionDate in Ascending order. You can also Sort each group if you need to.

If you still run into problems, you can sort the field after it's been converted into a date:

=CDate(Fields!completionDate.Value)
like image 118
Nathan DeWitt Avatar answered Dec 16 '22 07:12

Nathan DeWitt