Solved

SQL Reporting Services - Graph

Posted on 2008-06-19
5
876 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

763 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