How to show month name in crystal report chart?

Chirag Khatsuriya picture Chirag Khatsuriya · Aug 23, 2013 · Viewed 8.7k times · Source

I am using Crystal Report 2008, in Line Chart I want to show month name like Jan Feb March on x-Axes in report. How do I show months on x-Axes?

Answer

Alec. picture Alec. · Aug 23, 2013

The best way to do this is create a separate formula field with the following formula

cstr(monthname(month({YourDateFieldHere})))

Use this in your chart.

This simply pulls the month from the date here. If you require to change this any, I'm sure you can change the format by right clicking, or alternatively if it shows up 01, 02, 03 ect.. you could use a series of IF statements in your formula, for example

IF {YourDateFORMULA} = "01" THEN January

And so on, although this shouldn't be needed as the MonthName function in the original formula should cover this.