Solved

SQL Reporting Services - Graph

Posted on 2008-06-19
5
886 Views
Last Modified: 2011-10-19
I have a graph which displays data for the last year, however, as I return so many days worth of data, the bottom of the graph looks corrupt.

How can I get RS to decrease the frequency at which it prints the date?

date-range.png
0
Comment
Question by:egxis
  • 2
5 Comments
 
LVL 5

Expert Comment

by:catherinelouise
ID: 21829368
Hello,

You could define an expression which only displays every other label.  For example, if you edit the group in the Chart Properties data tab, you can put this expression into the label field:
=iif(RowNumber(Nothing) Mod 2, Fields!Date.Value,"").

You could also make the font a little smaller.  On the X Axis tab, click the style properties icon next to Format Code - you can edit font size there.

Cat
0
 

Author Comment

by:egxis
ID: 21829438
It's looking better, but my issue is that if the user selects a larger date range [e.g. 36 months]?

How can i force only 12 dates from the date range to print, using a similar expression?
0
 
LVL 5

Accepted Solution

by:
catherinelouise earned 500 total points
ID: 21829607
Here's all I can come up with right now:
use nested IFs in the label statement which will depend on the date range.  something like:

=IIF(DateDiff("m",max(Fields!date.Value, "Dataset"),min(Fields!date.Value, "Dataset")) >= 36,(iif(RowNumber(Nothing) Mod 3,Fields!date.Value, " ")), IIF(DateDiff("m",max(Fields!date.Value, "Dataset"),min(Fields!date.Value, "Dataset")) >= 24,(iif(RowNumber(Nothing) Mod 2,Fields!date.Value, " ")),Fields!date.Value) )
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

947 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

22 Experts available now in Live!

Get 1:1 Help Now