Solved

Sorting by DATE and TIME in Visual Studio Reporting (SSRS)

Posted on 2014-04-22
4
2,088 Views
Last Modified: 2014-05-15
I have a report that has field called START_TIME. This field is a date field. When I run the ORDER BY in the query it is correct. When I run the report using PREVIEW that date is not sorted. How do I sort the date show it displays in my report correctly?
0
Comment
Question by:allenkent
4 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 40016338
>When I run the report using PREVIEW that date is not sorted

1.

Check your matrix/tablix's Row Groups properties, then Sorting, and see if the report is sorting at all, which will override the query's sort order.

2.

Make sure the Data Set shows that column as a datetime, and not text.
0
 

Author Comment

by:allenkent
ID: 40016367
1) I have checked and add START_DATE to my tablix and it does not work. No sorting in tablix seems to work

2) My table shows as DATETIME field. Why would the data set change value? How?
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 40016398
are you applying a format to that datetime field in the query?

e.g.
convert(varchar, START_DATE ,111)
0
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 40019981
Please check Matrix Sort order.

Select Matrix=> Property=> Soring Tab=> Select Starte_DAte Column.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 Lag Function With Group Levels 1 27
Are triggers slow? 7 12
MS SQL Server select from Sub Table 14 25
Stored Procedure needs owner to execute 5 19
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question