Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Deepa,
In sort inside expression do something like below as per ur required order.
Dual(Month,Match(Month,'jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'))
Thanks,
AS
Hi Amit,
Thx for the reply,
If I do that,what ever the year it sorts it in Jan,Feb,...Dec order.
But I want it to consider the year ans month both in sorting
ex: if I select date range Oct2014 to Jan 2015
it shud be in the order Oct , Nov, Dec Jan
Hi,
you should add in your load script an ID field for each datefield (maybe with autonumber() instruction that "labels" every value of datefield with a progressive number).
Then you can insert the ID field in the expression of sort tab.
Hope this helps,
Elena
Hi Deepa, you can sort your months using an expression like Min({1} datefield)
Use this expression in sort tab
date#(Mid([datefield],1,8), 'YYYYMMDD')
in the Script generate a numeric value for your date column and the use that column for the sorting.
num(datefield) as SortDate
Hi Deepa,
you can define your sort order exactly with a inine table
LoadorderMonths:
LOAD * INLINE [
Months
OCT
NOV
DEC
JAN
];
regards
Bumin
Hi Deepa,
Try this,
While loading, sort the date field (in script using order by) then sort month by Loaded Order.
Thanks
Harsha
please post sample app