Hie Guys,
I have a dimension object - "Month" with values - 1, 2, 3, 4 as of now as the current month is April. I have created a variable for the "Month Name".
The formula is given below.
If (Month = 1) Then "Jan"
Elseif (Month = 2) Then "Feb"
Elseif (Month = 3) Then "Mar"
Elseif (Month = 4) Then "Apr"
Elseif (Month = 5) Then "May"
And so on ......
Now, my report has a cross-tab showing monthly employee hours. When using the "Month" object, I am able to sort it in ascending (1,2,3,4) or descending order (4,3,2,1). But, when I use the "Month Name" object, the months are not in order. I sorted the object with custom sort, but, since there is only data till the current month, I am only able to get - Jan, Feb, Mar & Apr in the report. In this case, when data is available for the next month, I will have to rearrange the sorting order again. Could anyone please tell me what I need to do in order for the "Month Name" column to automatically sort in order as new Month data becomes available (i.e. Jan, Feb, Mar, Apr, May, June, July, Aug, Sept, Oct, Nov, Dec)? Thanks.