Magic ETL

Magic ETL

How to use Beast Mode to Filter Out Specific Words or Phrases

Member

Hi,

I'd like to create a re-useable calc that will filter out certain words or phrases that are found in a field.

example:

Closed Description field might have the words or phrases below which I do not want my cards to display those records.

SPAM, N/A, Dup, Duplicate

Thanks, Lisa

Best Answer

  • Coach
    Answer ✓

    @user03163 You can create a beast mode like the one below that you can use a as a filter. Using the LIKE operator with the % wildcard will allow you to exclude any records that contain the specified text. In this case searching for "Dup" will also return "Duplicate".

    1. case
    2. when `Closed Description` like '%SPAM%' then 'Exclude'
    3. when `Closed Description` like '%N/A%' then 'Exclude'
    4. when `Closed Description` like '%Dup%' then 'Exclude'
    5. else 'Include'
    6. end

Answers

  • Coach
    Answer ✓

    @user03163 You can create a beast mode like the one below that you can use a as a filter. Using the LIKE operator with the % wildcard will allow you to exclude any records that contain the specified text. In this case searching for "Dup" will also return "Duplicate".

    1. case
    2. when `Closed Description` like '%SPAM%' then 'Exclude'
    3. when `Closed Description` like '%N/A%' then 'Exclude'
    4. when `Closed Description` like '%Dup%' then 'Exclude'
    5. else 'Include'
    6. end
  • Member

    That's awesome. I now have the basics on this and can create more if needed. Really appreciate this :)

    Best, Lisa

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In