Hi Sylvia
What error messages do you get? What do you understand them to mean? Can you clarify the context in which you are attempting the filter please.
An expression which uses an operator such as <> and a operand such as 'AP' will ask for an exact match of the string which is in the quotes. The same would be true for the not in operator.
I think you might want to look at adding the substring function to your expression. In your case you know the position and length of the substring which you are looking for and both are not variable, which simplifies the problem a bit.
For example, this expression will filter out any country whose name begins with 'Un'.
substring (COUNTRY_EN, 1,2) <> 'Un'.
This would exclude the UK and the US.
In your case you might want to think about the not in operator.
substring (COUNTRY_EN, 1,2) not in ( 'Un','Sw')
This would exclude the UK,the US, Sweden, and Switzerland.
Hope that helps.
------------------------------
IAN HENDERSON
------------------------------
Original Message:
Sent: Fri February 10, 2023 10:54 AM
From: Sylvia Simmons
Subject: Filter to exclude values
Hello everyone, I've been trying to put a filter on Role_ID to exclude any role that begins with AP or PR. I've tried using the <> 'AP' and not in functions, but keep getting errors. any suggestions?
------------------------------
Sylvia Simmons
------------------------------