Friday, 2 December 2011

OBIEE Dates in Descending order from RPD Column

When you have a date column and you want to sort it as Descending when picked in Answers but automatically from rpd.

1. Insert a new column in the BM Layer in Rpd using calculation below

-(1) *  CAST ( EVALUATE('TO_CHAR(%1,%2)' AS  CHARACTER ( 30 ), yourcolumn, 'YYYYMMDD') AS INTEGER )

yourcolumn is the column that you want to sort.

2. Once created goto the original column yourcolumn and set the sort order to the column you just created above.

Thats Its ...

No comments:

Post a Comment

Google Drive API Google Sheets Extract to CSV with SERVICE KEY.JSON Recent Client had some Google Sheets stored on their Goo...