Solved

How do I Change Labels on a Chart Axis to Show Individual Months Only

Posted on 2013-05-14
7
1,926 Views
Last Modified: 2013-05-20
I have created a series of charts in Report Builder 3.0 showing disk space usage over time.  The charts have the date along the x axis and at the moment the labels are showing every second day with the month and year.  These charts are potentially infinitely expandable so I'd like to have one label per month just showing the discrete month and year if possible. Can anybody help please?
0
Comment
Question by:BWFC
  • 4
  • 3
7 Comments
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
Comment Utility
may I suggest this url?
http://msdn.microsoft.com/en-us/library/dd239363(v=sql.105).aspx

You seem to have default major intervals (with labels on each) so you need to look at the major/minor tick mark intervals and then label only the major ones

at least that what I think you are after.
0
 

Author Closing Comment

by:BWFC
Comment Utility
I'd already looked at altering the major and minor tick marks and I'd found that URL using Google.

I'm not sure I explained what I wanted to do particularly clearly because  after chatting with the rest of the BI team and further Google searches I don't think want I want to do is actually possible with the data I have.

Thanks for your help.
0
 
LVL 48

Expert Comment

by:PortletPaul
Comment Utility
Thank you for the points, although seems undeserved.

Most graphic packages have their own "tricks", and a date range on the X axis can be "tricky" - however it will boil down to the tick marks in some way shape or form.

How to: Format Axis Labels as Dates or Currencies (Report Builder 3.0 and SSRS)
When you show properly formatted DateTime values on an axis, a chart will automatically display these values as days. To specify a date/time interval for the x-axis, such as an interval of months or an interval of hours, you must format the axis labels and set the type of axis interval to a valid date or time interval.
I think the secret is within the one immediately above, which is confirmed by the next reference.

How to: Specify an Axis Interval (Report Builder 3.0 and SSRS)
This topic is not applicable for date or time values on the category axis. Be default, DateTime values appear as days. To specify a different date or time interval, such as a month or time interval, you must format the axis labels and set the axis to display instances of DateTime types instead of String types. In addition, you must set the Interval property. For more information, see How to: Format Axis Labels as Dates or Currencies (Report Builder 3.0 and SSRS).
{+ edit for emphasis on "interval"}
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:BWFC
Comment Utility
Screenshot of property settings Screenshot of property settings
Hi, I think I've got all the settings set to show months but it's still not giving me the single label per month.  The Number format I'm using is *January 2000.  Are the settings on the screenshots correct?  The expression on minimum axis range makes no difference whether it is there or not.
0
 
LVL 48

Expert Comment

by:PortletPaul
Comment Utility
You have not "set" the interval, but allowed "auto" (in both)

You will only know for sure by "playing" with these, but I think you need to actually specify the interval (in both most likely) - can you try it?
0
 

Author Comment

by:BWFC
Comment Utility
I've just had that realisation myself!  A lot of the internet searches came back saying "the Interval will show this" so I thought when I could only see 'Auto' as an option it was something to do with my version of Report Builder or my data (I'm very new to SQL and BI) .  I think I'm going to need something involving datediff and/or datepart to get the discrete months to show as labels.
0
 
LVL 48

Expert Comment

by:PortletPaul
Comment Utility
maybe a new question - with your existing query? and a mock-up of your expected outcome?
a fresh start might help
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now