简体   繁体   English

SSRS过滤器表达日期或日期

[英]SSRS Filter expression date OR date

I have a dataset in SSRS 2010. It returns a value for Start_Date and End_Date . 我在SSRS 2010中有一个数据集。它返回Start_DateEnd_Date的值。 I need to filter the dataset with the following: 我需要使用以下内容过滤数据集:

Start_Date >= 05/04/2012 or Start_Date < 04/04/2013 or End_Date < 04/04/2013

I have tried: 我努力了:

Expression:=(start_date >= '05/04/2012') or (start_date < '04'04'2013') or (end_date < '05/04/2013')
Operator: =
Value: =True 

but unfortunately it does not apply the filter selection. 但不幸的是,它不应用过滤器选择。

Can anyone help please? 有人可以帮忙吗?

I am assuming you want reocords between 05/04/2012 and ' 04/04/2013' for start date or end date < 04/04/2013 . 我假设你想之间reocords 05/04/2012' 04/04/2013'的开始日期和end date < 04/04/2013 If that's what you want the records which have Start_Date between 05/04/2012 and ' 04/04/2013' then you are using the wrong operator OR . 如果那是您想要的记录,它们在Start_Date 05/04/2012Start_Date '之间具有Start_Date ,则您使用的是错误的运算符OR You should use And or Between so that you can get the data between that 2 dates. 您应该使用“ And或“ Between以便可以获取这两个日期之间的数据。 More info on logical operator here. 有关逻辑运算符的更多信息,请参见此处。 .

UPDATE UPDATE

If you want Use OR in filter then use as below 如果要在过滤器中使用OR ,请按以下方式使用

 Expression: =(Fields!Start_Date.Value >= 05/04/2012) OR (Fields!Start_Date.Value < 04/04/2013 ) OR (Fields!End_Date.Value < 04/04/2013)
 Operator: =
 Value:  =TRUE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM