返回记录值= x SSRS

时间:2013-12-17 14:46:59

标签: sql reporting-services sql-server-2008-r2

我的报告结构如此

Value | Date | Value Substring
xxxa  | date | a
xxxb  | date | b
xxxb  | date | b
xxxb  | date | b
xxxc  | date | c
xxxc  | date | c

我想要一个包含所有子字符串值(a,b,c)的下拉列表,然后当我从列表中选择一个子字符串值时,它返回子字符串值匹配的所有记录。

我无法为我的生活做出如何做到这一点!

非常感谢任何帮助 谢谢, 加雷

1 个答案:

答案 0 :(得分:0)

你能否拥有一个由

驱动的参数(下拉列表)
select distinct [value string]
from [wherever you're getting the above data from]
order by [value string] asc

然后使用下拉参数的选择值来过滤查询...在数据集级别或矩阵(表示)级别。数据集级别会更有效。