My Dataset contains the field "length"
with numbers from 1 to 100. I just want to filter data which are greater than 50 or which are less than 50.
I just use the formula:
"Length" < 50 And "Length" > 100
But this filters data into series.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityThe logical operator should be OR
instead of AND
.
"Length" < 50 OR "Length" > 100
See Logical connective for more details.
Another solution will employ NOT BETWEEN
operator:
"Length" NOT BETWEEN 50 AND 100
length
attribute is greater than 50 or smaller than 50, you will get the whole data set. Also, in your example, you use"Length" > 100
which will yield no data since you don't have values over 100. I guess you should duplicate your layer and set a filter"Length" < 50
in one of them, and"Length" > 49
in the other one