SSRS 图表中的可选系列?

发布于 2024-07-24 06:50:03 字数 108 浏览 3 评论 0原文

是否可以将图表中的一系列设为可选(即仅在用户单击复选框时呈现,以防相应的查询需要一段时间并且可能不需要)?

或者是否有任何替代解决方案,用户可以逐步选择他们想要查看的数据系列/图表?

is it possible to make a series in a chart optional (i.e. only rendered when the user clicks a checkbox, in case the corresponding query takes a while and may not be required)?

Or are there any alternative solutions where users can incrementally select the data series/charts they would like to see?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

慕烟庭风 2024-07-31 06:50:03

我在 SSRS 2008 中遇到了类似的问题,我试图根据系列值的值隐藏一个系列。 我尝试设置该系列的可见性,但没有任何效果。 然后我尝试将系列隐藏在图例上,希望它也能将其隐藏在图表上,但事实并非如此。 最后,我将系列的值设置为表达式 =iif(fieldvalue=0,"",fieldvalue),因此如果系列的值为 0,则不会返回任何值,它还隐藏了传说中的系列。 这有点晚了,但希望对某人有所帮助。

I was having a similar problem in SSRS 2008, I was trying to hide a series based on the value of the series value. I tried to set the visibility on the series, but that did nothing. Then I tried hiding the series on legend hoping it would also hide it on the chart, it did not. Finally, I set the value of the series to an expression, =iif(fieldvalue=0,"",fieldvalue), so it would return no value for the series if it had a value of 0, it also hides the series in the legend. This is a little late, but hopefully it helps someone.

顾北清歌寒 2024-07-31 06:50:03

这可以通过参数来实现。

您可以设置参数来决定运行时在报表上显示的内容。 您可以借助报表查看器控件旁边的一些控件以编程方式设置参数。

This can be achieved with Parameters.

You can set parameters to decide what is to be displayed on the report during runtime. You can programatically set the parameters with the help of a few controls places alongside the reportviewer control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文