SSRS:如何根据多值参数分页后在文本框中显示多值参数的每个值
此查询基于此链接 https://www 中的示例.sqlshack.com/using-multi-value-parameters-in-ssrs/。
- 让我们假设我在多值参数中有多个职位:
- 会计师
- 客户经理 (...)
- 首席执行官
- 现在,如果我一次选择多个职位,它们的标签将显示在标题顶部,如下所示:
我的问题是:如果我应用分页符基于这些多值参数,如何显示每个分页符的参数值,而不是通过 Join
函数组合所有参数值?
- 第 1 页应为“员工详细信息报告: 会计
- ” 第 2 页应为“员工详细信息报告: 客户经理 ” (...)
- 第 N 页应为“员工详细信息报告:首席执行官”
This query is Based on the example in this Link https://www.sqlshack.com/using-multi-value-parameters-in-ssrs/.
- Let us assume that I have several Job Titles in the multi-value Parameter:
- Accountant
- Accounts Manager
(...) - Chief Executive Officer
- Now, if I select several job titles at a time, their Label will appear on top of the title as follows:
My question is: if I apply Page Break based on those multi-value parameters, how do I display Parameter Value per Page Break instead of all of them combined by the Join
function?
- Page 1 should be "Employee Detail report: Accountant"
- Page 2 should be "Employee Detail report: Accounts Manager"
(...) - Page N should be "Employee Detail report: Chief Executive Officer"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在数据集中返回 JobTitle 描述,然后您可以在报告的表格中添加一个按 JobTtitle 分组的组(如果您还没有)。
现在向您的组添加一个标题行,然后您可以将 JobTitle 字段放入文本框中。
You'll need to have the JobTitle descriptions returned in your dataset, then you can add a group in your report's table which groups by JobTtitle (if you don't already have one).
Now add a header row to your group and in there you can drop your JobTitle field into the text box.