ssrs 2008- changing chart type dynamically
-
Tuesday, February 19, 2013 6:56 PM
Hi,
I have a requirement where i need to change the chart type at run time. I know this can be done by having overlapping charts and making there visibility either true or false depending on some parameter. I was looking form some other method to get this problem solved as this solution will increase a lot of rework in my case.
Note: I am using SSRS 2008
Can anyone help?
- Edited by staycool Tuesday, February 19, 2013 6:57 PM
All Replies
-
Saturday, February 23, 2013 11:57 AMI am afraid you'll have to do this rework. No dynamic option is available in SSRS 2008 release.
Thanks
Salman
http://muhammadsalmanx.wordpress.com -
Monday, February 25, 2013 10:11 AMModerator
Hi Staycool,
Yes, this can be done by using the parameter to set the visibility of the charts. I have tested it on local environment, everything works fine. The steps below are for your reference.- Create a parameter “Type” and add the available values for it.
Label Value
column column
line line
shape shape
bar bar - Create four charts.
- Use the expression below to set the visibility of column chart.
=iif(instr(join(parameters!Type.Value,""),"column"),false,true) - Use the expression below to set the visibility of line chart.
=iif(instr(join(parameters!Type.Value,""),"line"),false,true) - Use the expression below to set the visibility of shape chart.
=iif(instr(join(parameters!Type.Value,""),"shape"),false,true) - Use the expression below to set the visibility of bar chart.
=iif(instr(join(parameters!Type.Value,""),"bar"),false,true)
The report looks like below.
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
TechNet Community Support- Proposed As Answer by Rana_Hasan Monday, February 25, 2013 11:16 AM
- Marked As Answer by Mike YinMicrosoft Contingent Staff, Moderator Sunday, March 03, 2013 3:55 PM
- Create a parameter “Type” and add the available values for it.
-
Thursday, February 28, 2013 5:27 PM
Hi Charlie Leo/Salman
Thanks for your replies.
But i have another question, if there is any other way to achieve this in new versions( SSRS 2008 R2 or SSRS 2012) ?
- Edited by staycool Thursday, February 28, 2013 5:33 PM
-
Friday, March 01, 2013 1:18 AMModerator


