CodeJunky
asked on
SSRS Graph X-Axis number to month name
Hi all, I'm having a problem changing the X-Axis labels from a number to text; such as 1 to January, 2 to February, etc...
I've tried a number of things but the best I can get is that each number is change to text but it is the same text. So 1,2,3,4,5,6, etc.. are all showing January. I've create =Switch expressions and used the =MonthName(Fields!MONTH.Va lue, True) in the Format applet which shows all pints as "Jan".
I'm using SQL 2012.
Any help would be wonderful.
Thanks,
John.
I've tried a number of things but the best I can get is that each number is change to text but it is the same text. So 1,2,3,4,5,6, etc.. are all showing January. I've create =Switch expressions and used the =MonthName(Fields!MONTH.Va
I'm using SQL 2012.
Any help would be wonderful.
Thanks,
John.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got the last piece done the same as above; just had a query issue.
ASKER
I figured it out in a much different way presented. I also had tried the suggestion provided prior to asking this question and it did not work because the answer was not related to a graph; but an expression for non graph objects.
=Format(Fields!MONTH.Value
or
=Switch(Fields!MONTH.Value
Fields!MONTH.Value = 2, "February",
Fields!MONTH.Value = 3, "March"................)
this came from http://www.sql-datatools.c