Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart Dimension Convert Month to Words

Dear all,

I have month in my chart dimension. The data in the database for month is in '01','02','03'....

How do i convert it to words when it display in chart

I know the following formula. But how could i apply it in this instance?

upper(date(Today(),'MMMM'))

6 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Pick(Num(MonthDimensionName), 'Jan', 'Feb', 'Mar', ......................, 'Dec')

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Where should i type this in?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Put this wherever you need like in expression, dimension script, but it is better to have this in script like this

LOAD

     *,

Pick(Num(MonthDimensionName), 'Jan', 'Feb', 'Mar', ......................, 'Dec') AS MonthName

FROM DataSource;

Now use MonthName in Dimension or Expreesion.

Hope this helps you.  If not understanding please attach sample file.

Regards,

Jagan.

Not applicable
Author

Ok.. But how do i sort the month from Jan ... Dec

jagan
Luminary Alumni
Luminary Alumni

HI,

Then try like this

TableName:

LOAD

     *,

Dual(Pick(Num(MonthDimensionName), 'Jan', 'Feb', 'Mar', ......................, 'Dec'), Num(MonthDimensionName)) AS MonthName

FROM DataSource;

Now in Sort tab select Numeric.

TableName:

LOAD

     *,

Date(MakeDate(2013, Num(MonthDimensionName)), 'MMM') AS MonthName

FROM DataSource;

Now in Sort tab select Numeric.

Hope this helps you.

Regards,

Jagan.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Please close the discussion if your issue is solved by giving the Correct and Helpful answers to the posts.  It helps others to find the solution for similar issues.

Regards,

Jagan.