SQL Server Report Builder 3.0 排除空字段
我正在尝试使用 SQL Server Report Builder 生成报告(这是我第一次)
,并且我有一个包含以下字段的列表:name、order、weight、temp
有时字段 order
没有任何价值。我想过滤 order
没有值的行!
亲切的问候 马可
I am trying to generate reports with SQL Server Report Builder (my first time ever)
And I have a list with this fields: name, order, weight, temp
Sometimes the field order
has no value. And I want to filter the rows where order
has no value!
With kind regards Marco
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的数据集是否包含您定义的查询?如果是这样,您可以根据过滤器输入进行查询。例如,您可以向报表生成器报表添加一个参数,该参数将值传递给您的查询(All、NotMissingOrder)。
因此,下面的代码接受从报告“@FilterParam”传入的参数,如果选择了过滤器,则该参数作为 NotMissingOrder 的值。这将排除那些 Order 没有输出值的记录。您可以将参数的默认值设置为 = 'All',否则将返回所有内容:
Are you using a dataset that has a query that you defined? If so you could base your query on the filter input. So for instance you could add a parameter to your Report Builder Report that passes in a value to your query (All, ,NotMissingOrder).
So the below takes in a param passed in from the report "@FilterParam" which as a value of NotMissingOrder if the filter is selected. This would exclude those records where Order doesn't have a value from the output. You could set the default value of the param to = 'All' So that otherwise everything would be returned: