Is there anyway to add a hyperlink to the category groups of a chart in SSRS (2008)?
Usually I'd go into the properties and and build an expression for the Url Redirect option. I've reviewed the properties of category groups and there isn't an Action tab like there is for the values properties.
If there isn't an 'out of the box' solution, is there a way around this?
In SSRS, you can't make category or series names actionable, but you can make the Series Values (the bars themselves) actionable.
Right click on the field under the "Values" section of the Chart Data context dialogue and select "Series Properties".
On the Action tab, you can then set the Action to "Go to URL". This is the closest you can get to this functionality in SSRS.
EDIT: If you export to Excel, the hyperlinks will not work.
Related
Problem: Bookmarks that link to hidden report items still link when clicked, but you end up seeing the next visible item.
I have an SSRS report with a summary table (tablix A) that shows Customers Grouped by Parent Customer. The field containing the parent customer is bookmarked.
Then I have a Tablix (tablix B) with charts, again grouped by parent, with a page break for each parent. The Charts are suppressed (hidden using formula in the Visibility property for the Group parentno in tablix B) if there is not enough data to create senseible charts for that parent customer.
How can I disable the "Go to bookmark" action dynamically, or create a null bookmark instead, when I know the bookmark target will be hidden?
The end goal is for this report to export to excel, so I would also like to avoid the error "refrence is not valid" that appears when you click an invalid bookmark in excel.
This turned out to be not so difficult, although not immediately obvious.
When you go into text box properties, Action, and choose Go to Bookmark, you can use an expression to create the bookmark. If your expresion returns the static constant "nothing".. then SSRS will not create a bookmark. So this means you can use the same formula from your target item that decides if your bookmark target item is hidden or not to dynamically bookmark, or not.
Example if your expression for visibility property is
=IIF(CountDistinct(Fields!BusinessUnit.Value, "getMainData")>1,False,True)
Then the bookmark expression would be
=IIF(Parameters!AM.Value="ALL",Fields!BusinessUnit.Value,Nothing)
I've done this numerous times in XHTML but I am not sure if it is possible to do in SSRS Reports: I am trying to create a (link) list that allows a user to click on and be moved to another point WITHIN that same report. Is this possible to create anchors and do this just like you would in XHTML? Thanks a lot!
(tools that are available to me are SSRS in BIDs 2008 environment as well as Report Builder 3.0)
You could use bookmarks.
First you add bookmarks to the points in your report you want a user to be able to jump to. Select the report item you want to jump to and in the properties pane find the Bookmark property and type a unique name in here for the bookmark.
Then add a Textbox or Image that the user would click on to take them to that bookmark. In Design view right click on this item and select the Properties option.
In the properties window select Action from the left hand side.
Choose Go to bookmark then in the Select bookmark box type the name of your bookmark that you created earlier.
OK this and you should be good to go.
Is it possible to include drill down or link to report functionality in the category group (x-axis) for a stacked bar chart report?
OK, based on the comments above it's not exactly possible to do what you're asking. You can certainly apply drillthrough actions at a data level, which would mean users could click on the chart area:
So you would to set the Action up to pass a parameter based the series/category of the area thats clicked, which would effectively accomplish the same result, just in a slightly different way. But clicking directly on the axis is not possible.
Reporting Services
I need to jump to a specific report according to the value that takes a variable data set.
For example: If the variable has the value = 2, then go to the report 'Informe_1' but if the value is = 4, then go to the report 'Informe_2', this automatically without having to click anything. That is a generic type of report which determines which of the 2 reports must be charged according to the value of the variable.
Currently I have in the properties of the variable, in action, go to report, but I need to specify the condition to be 'Informe_1' or 'Informe_2' according to the value of that variable (2 or 4).
I'm not aware of a way to automatically go to a specific report without the user clicking something; however, you can specify an expression for the Action on something and that way the user will get the report specified by your variable when they do click.
In Design view, right-click the text box, image, or chart to which you want to add a link and then click Properties.
In the item's Properties dialog box, click Action.
Select Go to report. Additional sections appear in the dialog box for this option.
In Specify a report, click Browse to locate the report that you want to jump to, or type the name of the report. Alternatively, click the expression (fx) button to create an expression for the report name.
Also, see Expression Examples (Report Builder 3.0 and SSRS) for more information about expressions.
You can also alter the visibility of a linked item similarly. To give an example, in some of my own reports I have a hidden #ReportParameter that I use to pass the report to return to when a Back link is clicked. If that parameter is empty I hide the link. I use Go to report and specify =Parameters!ParentReport.Value in the expression for the Action. For Visibilty with show or hide based on an expression selected, visible is false and hidden is true. That makes my Visibility expression =Parameters!ParentReport.Value = "".
This is driving me nuts. I've looked at all the relevant MSDN tutorials but they talk about 'data field drop zones' and how a 'Add Calculated Series' menu option should be there but it's not, and no screenshot is provided to show what a 'data field drop zone' is. This is the menu I get when I "right-click on a field in the data field drop zone":
The frustrating thing is I know I've seen this calculated series stuff before, but I can't find it again, it's not in the 'Series Properties' dialog that I can see, and I can't find a tutorial showing how to find this feature. I'm guessing you can only have a calculated series on certain chart types, or I don't have some flag turned on or something, but I didn't see that mentioned anywhere.
Can you tell me how I can add a line showing the median of my data to a chart in Report Builder 2.0? I think I can do this by adding a 'Moving Average' via a 'Calculated Series', but I can't find how to add that.
Edit: on a different chart, the 'Add Calculated Series' menu option was available. It was a stacked column chart and the series I right-clicked on was an expression that used RunningValue.
I had to remove the series group (from the 'data field drop zone' on the right side of the chart) so that all I had was 1) a category group (bottom of the chart) and 2) a data series (top of the chart). Then I could right-click on the data series at the top of the chart and 'Add Calculated Series' was a menu option.
I solved it by making the groups as individual series and then a combined series that i set to hidden. I was then able to make the calculated series from the hidden series.