Problem Note 38879: Months might not sort correctly in a crosstabulation table with a filter applied in SAS® Web Report Studio
The sort order for a month data item might not sort correctly in certain situations.
The problem is most likely to occur if the data item that represents the month is a date
value that is formatted with the MONNAME format. When this data item is used
in a crosstabulation table with an applied filter, the order is not always predictable.
In the following example, the results have been filtered to show results after the date 01MAY08. Notice that the months in 2009 are sorted incorrectly. Specifically, the months of January, February, March, April, and May appear after December.

One workaround to this problem is to create another data item using the MONTH(mydate)
expression, where mydate is the name of your data item. The result
of the expression is a number representing the month. In order to get the month
name, you can apply a user-defined format to the data item. Below is an example
of what the user-defined format named mon would look like:
libname formats 'C:\SAS\EBIserver\Lev1\SASApp\SASEnvironment\SASFormats';
proc format library = formats;
value mon
1 = "Jan"
2 = "Feb"
3 = "Mar"
4 = "Apr"
6 = "Jun"
7 = "Jul"
8 = "Aug"
9 = "Sep"
10 = "Oct"
11 = "Nov"
12 = "Dec";
run; |
Operating System and Release Information
SAS System | SAS Web Report Studio | z/OS | 4.2 | | | |
Microsoft® Windows® for x64 | 4.2 | | | |
Microsoft Windows 95/98 | 4.2 | | | |
Microsoft Windows 2000 Advanced Server | 4.2 | | | |
Microsoft Windows 2000 Datacenter Server | 4.2 | | | |
Microsoft Windows 2000 Server | 4.2 | | | |
Microsoft Windows 2000 Professional | 4.2 | | | |
Microsoft Windows NT Workstation | 4.2 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | | | |
Microsoft Windows Server 2003 Standard Edition | 4.2 | | | |
Microsoft Windows Server 2008 | 4.2 | | | |
Microsoft Windows XP Professional | 4.2 | | | |
Windows 7 Enterprise 32 bit | 4.2 | | | |
Windows 7 Enterprise x64 | 4.2 | | | |
Windows 7 Home Premium 32 bit | 4.2 | | | |
Windows 7 Home Premium x64 | 4.2 | | | |
Windows 7 Professional 32 bit | 4.2 | | | |
Windows 7 Professional x64 | 4.2 | | | |
Windows 7 Ultimate 32 bit | 4.2 | | | |
Windows 7 Ultimate x64 | 4.2 | | | |
Windows Millennium Edition (Me) | 4.2 | | | |
Windows Vista | 4.2 | | | |
64-bit Enabled AIX | 4.2 | | | |
64-bit Enabled Solaris | 4.2 | | | |
HP-UX IPF | 4.2 | | | |
Linux for x64 | 4.2 | | | |
Solaris for x64 | 4.2 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Topic: | Query and Reporting ==> Interactive Querying
|
Date Modified: | 2010-03-04 13:33:44 |
Date Created: | 2010-02-26 17:09:07 |