[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SQL Reporting Services - Graph

Posted on 2008-06-19
5
Medium Priority
?
926 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

649 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