January 10, 2011 at 4:34 am
Hello How are all here ...
I want to write a filter expression by using only OR logical operator between two columns:
1. Age and Position are the two columns.
2. I want to write an expression such like:
Age >= 19 OR Position = "Mother" OR Position ="Father" (This is an Sql filter expression)
How can I write such expression ?
Currently I am trying to write this expression as below:
=IIF(cstr(Fields!AGE.Value) >= 19 OR cstr(Fields!Position.Value) = "Mother","false","true") And Value = 0, but still it is returning all records which are less than 19 as well as non-mother.
Please help?
January 10, 2011 at 7:13 am
What is it you want returned?
>=19, True
Mother, True
Father, True
All others false?
If this is what you want, try this:
=IIF(cstr(Fields!AGE.Value) >= 19,"true",IIF(cstr(Fields!Position.Value) = "Mother","true",IIF(cstr(Fields!Position.Value) = "Father","true","false")))
January 10, 2011 at 7:50 am
I have already resolved it. It was very simple. Thanks by the way.
January 10, 2011 at 7:58 am
azhar rahi (1/10/2011)
I have already resolved it. It was very simple. Thanks by the way.
How did you resolve it?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply