I have a dataset in SSRS 2010. It returns a value for Start_Date
and End_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
. 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
. You should use And
or Between
so that you can get the data between that 2 dates. More info on logical operator here. .
UPDATE
If you want Use OR
in filter then use as below
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.