Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Group result with hyphens not correct

$
0
0

Hi

I am creating a report in SSRS with column name "Rm No" which look like this when run (see below), the sort order is the way they want it to look on the report

18-1

18-2

18-3

18-9

18-10

18-19

18-20

However  when I group by "Rm No" the result is not the same as expected. The result like ( see below) 

18-1

18-10

18-19

18-2

etc...

Anyone know how to get this grouping result to group in the order they are looking for - Grouping order 18-1, 18-2, 18-3, 18-9 ... etc..

The database field is VARCHAR, and when the query is executed it display the data in the correct sort order.

Any help will be greatly appreciated

Thanks  


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>