I have a SSRS 2008 report that generated columns of the months along with other data based on year halves. I have the tablix column group and sort set for [Mon] and the first half of the year generated just fine but when I run the report for the second half it does not display in order :
MonthNumber 10 11 12 7 8 9
MonthName October Movember December July August September
The SQL code that is used generated the following rows which appear in order of month number.
Mon
7
8
9
10
11
12
Mon
(which I presume is the month number) is coming through and/or being treated as text... You can see they are being sorted as strings, i.e. 10 will be before 7. Sorting by=CInt(Fields!Mon.Value)
, i.e. explicitly sorting as an integer, would likely solve the issue. Can you confirm the data type ofMon
? – Ian Preston