Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Re: Axis Interval

Author  Topic 

aswindba1
Yak Posting Veteran

62 Posts

Posted - 2013-12-11 : 18:39:06
How to change the axis intervals dynamically based on the range of dates.
Ex: date column has follwojg values

01/01/2013

02/04/2013

--------
--------
--------
--------
--------
--------
--------
01/06/2014

so the axis interval shoud be 01/2013 to 01/2014

if it is february axis interval should show 02/2013 to 02/2014

Olease advise andlet meknow if you need additonal information.

Thanks
Aswin

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-12-12 : 12:24:44
You just need to use the calendar table as your base table and then left join your other tables to that for the query behind. This will make sure it will show you the interval based on date range selected irrespective of whether its missing data or not.

if you dont have calendar table use this udf instead
http://visakhm.blogspot.in/2010/02/generating-calendar-table.html


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -