Solved

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

Posted on 2014-04-22
4
2,239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 66

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 49

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

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…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

726 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