SSRS Set a monthly Interval on chart

Hello Experts Exchange
I have a SSRS report where I select a date range and it give me a line chart of the sums for each day.  

Here is the query I use to get the data.

Select dateadd(DAY,0, datediff(day,0, Date)) as Date,Sum([Total Lost Hours]) as Total_Lost_Hours
from [dbo].[MachineLosses_View]
Where date >= @StartDate AND date <  @EndDate
Group by dateadd(DAY,0, datediff(day,0, Date))
order by dateadd(DAY,0, datediff(day,0, Date))

Open in new window

I want to be able to set the Interval of the Chart Axis to the start of every month. Please take a look at my attached file.

At the moment the Chart Axis is a bit random I want it so that at the start of every month a new label is shown.

Is this possible to do in SSRS?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nico BontenbalCommented:
Yes, this is possible. See the attached example. You can replace the query in this sample with your query. I've used formulas for the Minimum and Maximum properties of the Horizontal Axis. This way the axis always starts at the beginning of the first month with data and it ends at the last day of the last month with data. I've set the type to 'Scalar', interval to 1 and the Interval type to months. I've also set the Interval of the Major Tick Marks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SQLSearcherAuthor Commented:
Hello Nicobo
I'm unable to download the rdl file can you zip it up for me please?


Nico BontenbalCommented:
SQLSearcherAuthor Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.