0

Im working with reporting services 2008 and creating a report with a table and graph data. What i need to do, is to add a parameter, that a user can change specifying that if the results are value based or percent based.

If the user select value, the actual values in the chart and in the table appears as the real values. If the user select percent, it will appear as percent values from total.

How do i use the parameter @type i would create as input, to affect the values in the table and graph.

Thanks

4

1 回答 1

1

您可以尝试拥有一个表格和一个图表,并使其中的所有内容都基于表达式,但我认为这很快就会变得过于复杂,因为每个值都必须嵌套在IIf语句中。此外,如果您在图表上显示轴,则此格式很难基于表达式。

我会考虑在您的报告中包含两个表格和两个图表,为值和百分比设计,然后根据您的参数设置这些的可见性,即百分比项目的隐藏属性将类似于:

=IIf(Parameters!Type.Value = "Percentage", True, False)

为了防止空格问题,如果相关对象(例如两个图表)是直接相邻的,即它们之间没有空格,SSRS 通常可以处理这种情况,但是您可能需要稍微玩一下。

于 2013-10-15T10:40:28.433 回答