Solved

Showing 2 graph types in one rdl

Posted on 2010-11-16
5
462 Views
Last Modified: 2012-05-10
Hi experts!

I have a report that needs to contain a graph along with a table underneath showing the dataset values. I am required to either render the graph portion as a bar graph or a line graph depending on a parameter that is passed into the report. The dataset remains the same for either graph.
Do I simply drag 2 graphs onto the designer (1 bar graph type and 1 line graph type) and simply hide 1 or the other based on the parameter? Or is there another more clever way to do this dynamically?

I only want to show either the bar graph or the line graph but not both at the same time.

Thanks.
0
Comment
Question by:maloriopolium
[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
  • 4
5 Comments
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 34154028
Yes

Hide/Show usually is the approach to do that. But also look for properties which specify bar/line to see if you can set it up conditionally. I'm just going to see if there is one.

Regards
Emil
0
 
LVL 10

Expert Comment

by:itcouple
ID: 34154042
The property is called Type.... but doesn't allow expressions :(

Regards
Emil
0
 
LVL 10

Expert Comment

by:itcouple
ID: 34154050
Another option is to add graph/line on the same graph (literally) and use visibility to hide/show but I'm not sure how the Axis would behave in that case.

Regards
Emil
0
 

Author Comment

by:maloriopolium
ID: 34154260
Hi itcouple,

What do you mean by the property called Type? Where is this?
0
 
LVL 10

Expert Comment

by:itcouple
ID: 34154458
Hi

If you click the bar or line or point on the graph and go to properties pane (F4) - at least that is where I find it in R2. There is property called type, but it will not help as you cannot use expressions in it. What a shame.

Regards
Emil
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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