reporting-services - 在 SSRS 的 where 子句中使用参数
问题描述
我正在努力将 @parameter 与 where 子句一起使用。
实际上,我的要求是在从参数复选框中选择一月和二月两个月的数据时在报告中显示它们。
我在用
Union All select Months from table where @MonthSelected = 'Jan' AND @MonthSelected ='Feb'
我想将两者结合在 where 子句中,如果两者都被选中,那么它将根据需要显示数据,否则不显示。
但是我在用@MonthSelected 和AND 编写where 子句时面临挑战。
如果有人知道,请帮助我。
谢谢
解决方案
推荐阅读
- python - 用 PyQt5 更新和显示不同的图片
- node.js - Postgres 冲突 - 插入到另一个表
- javascript - 用cheerio解析html
- c# - 同时继承基类和接口
- python - 您如何在 CreateView 类(django.views.generic)中设置选择日期作为截止日期?
- python - 在文本 rpg python 中计算玩家击杀数
- excel - 查找单元格中一起出现的 n 个数字的公式
- javascript - 等待异步函数和直接调用异步函数有什么区别
- azure - Kubernetes 中的 Azure DevOps 构建代理
- javascript - Joi 嵌套时