Solved

SQL Reporting Services - Graph

Posted on 2008-06-19
5
896 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
coldfusion upload spreadsheet into the databse 2 42
Return 0 on SQL count 24 28
Alternative of IN Clause in SQL Server 3 17
Sql Query 6 51
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

806 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