SSRS 2008 中的动态图和过滤器
有人知道吗?即使是“不可能”的答案也是一个很好的答案:)
您好,
首先 - 我正在使用 SSRS 2008(不是 R2)、报表生成器 2.0 和报表模型。
我想创建动态图表,即让最终用户能够决定他想要查看哪个图表 - x 轴和 y 轴是什么。
我会尽量让它变得简单 - 假设我的报告模型有一些属性: 道具1 道具2 道具3 .....
我想使用一个报告参数来使用户能够选择他想要使用哪个属性作为 x 轴,并使用另一个参数来使他能够选择 y 轴。 填充参数的可用值非常容易。 当我想实际创建报告时,问题就开始了:) 由于可用属性的数量很大,我认为使用 iif 语句或隐藏/可见属性不是正确的方法。
有什么想法吗?
希望我说清楚了,并提前感谢您的帮助!
Anybody knows? Even an "it isn't possible" answer is a good one : )
Hi there,
To begin with - I'm using SSRS 2008 (not R2), report builder 2.0 and a report model.
I want to create dynamic graphs, i.e., to enable the end-user to decide which graph he wants to see - what are the x and y axes.
I'll try to make it simple - let's say my report model have some properties:
prop1
prop2
prop3
.....
i want to use a report parameter to enable the user to choose which propery he wants to use as the x axis, and another parameter to enable him to choose the y axis.
Populating the available values for the parameters is quite easy.
The problem begins when i want to actually create the report :)
Since the number of available properties is big, I don't think that using iif statments or hidden/visible properties is the right approach.
Any ideas?
Hope I made myself clear, and thanks in advance for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在 BIDS 工作,所以我不确定其中有多少会转移到 Report Builder,但是几天后您还没有收到任何回复。
你可以修改你的数据集吗?根据参数创建计算字段。您可以在报告模型中创建这些,并且在 BIDS 中,这些可以基于参数。希望您可以在报表生成器中执行此操作。该字段的名称可能类似于“AxisX”。在字段的定义中,有一个 iif 语句,该语句将根据参数返回适当的其他字段。
报表生成器中的计算字段:
http://msdn.microsoft.com/en-us/library/ms345330.aspx
I work in BIDS, so I'm not sure how much of this will transfer to Report Builder, but seeing as you haven't gotten any responses in a couple days.
Can you modify your dataset? Create calculated fields based on the parameter. You can create these in a Report Model, and in BIDS, these can be based on a parameter. Hopefully you can do this in Report Builder. The field might be named something like "AxisX." Within the definition of the field, have an iif statement that will return whichever other field is appropriate based on the parameter.
Calculated fields in Report Builder:
http://msdn.microsoft.com/en-us/library/ms345330.aspx
嗯,如果这是一个要求,我可能会尝试在查询中尽可能多地执行操作,并确保返回的是一个简单的数据集,例如
(上面的代码不起作用;它只是查询可能看起来的轮廓喜欢)
Hmmm, if this was a requirement I'd probably try and do as much as possible in the query, and make sure it's a simple dataset returned e.g.
(The code above won't work; it's just an outline of what a query might look like)