Any help would be greatly appreciated! Thanks!This message has been edited. Last edited by: FP Mod Chuck,
intsoccersuperstar WebFOCUS 8105m Windows, Excel
March 06, 2019, 12:54 PM
MartinY
It seems that STATUS_CHANGE_DATE_MODIFIED is not a date but a char due to : to_char(stat.status_change_date, 'MM-YYYY'), reason why 01-2019 is ordered before 12-2018 If it was a date 12-2018 was placed before 01-2019
You should better keep the date as a date and use IB format to have the date displayed as MM-YYYY
something such as
DEFINE FILE GGSALES
DATEMMYYYY /MYY = DATE;
END
TABLE FILE GGSALES
SUM DOLLARS
BY DATEMMYYYY
END
This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
March 06, 2019, 01:10 PM
Tom Flynn
Add another SQL column and use as your sort: to_char(stat.status_change_date, 'YYYY-MM') status_change_date_sort
In your ACROSS: ACROSS STATUS_CHANGE_DATE_SORT NOPRINT ACROSS STATUS_CHANGE_DATE_MODIFIED AS 'Month'