the formula in saved search criteria if the item c...
# ask-stanley-ai
n
the formula in saved search criteria if the item contains SALT or SKID
c
AI generated answer (using internal Slack threads):
Based on the conversations, to create a formula in saved search criteria to filter items that contain 'SALT' or 'SKID', you can use the
LIKE
or
CONTAINS
keyword in your formula. Here is an example of how you can do it:
Copy code
sql
CASE WHEN {item} LIKE '%SALT%' OR {item} LIKE '%SKID%' THEN 1 ELSE 0 END
In this formula,
{item}
is the field you are searching in. The
%
symbol is a wildcard that matches any number of characters. So,
%SALT%
will match any string that contains 'SALT' anywhere in it. The
CASE
statement returns 1 when the item contains 'SALT' or 'SKID', and 0 otherwise. Please note that this formula is case-sensitive. If you want to make it case-insensitive, you can use the
UPPER
function to convert both the field and the search string to upper case:
Copy code
sql
CASE WHEN UPPER({item}) LIKE '%SALT%' OR UPPER({item}) LIKE '%SKID%' THEN 1 ELSE 0 END
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820590734
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813265324
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812874913
Please provide your feedback on this answer.
127 Views