在SSRS中创建参数

时间:2015-08-17 20:23:37

标签: sql-server reporting-services

SELECT
Field1, Field2, Field3
FROM
sometable

嗨,我需要帮助在SSRS中创建一个参数。

当为False时,它应该只显示Field3 IS NOT NULL和。{ 当为True时,它应显示所有记录

谢谢!

1 个答案:

答案 0 :(得分:2)

您可以将查询更改为以下内容:

SELECT Field1, Field2, Field3 
FROM sometable 
WHERE (@param = TRUE) OR (Field3 IS NOT NULL)