Forum Discussion

Grizzlydad's avatar
Grizzlydad
Helper I
6 years ago

Create new column returning a value based on multiple criteria in another column

Hiya all

 

I have a table which has one column with a lot of text in it.  I wish to search that text and identify whether the word "ALERT or RESPONSE" was used and whicg region was contained in the text.  For example, see below, how do I check if NORTH EAST and ALERT were used to return a value of Yes.  Please bear in mind it may be any location (there are several in the organisation) and I would like to search for the words ALERT or RESPONSE being used in that column too.

NORTH EAST HAVE DECLARED REGIONAL ALERT WITH IMMEDIATE EFFECT IN RELATION TO

 

Best regards

 

Grizzly

5 Replies

    • Grizzlydad's avatar
      Grizzlydad
      Helper I
      MessageRegionResponseAlert
      THE NORTH WEST REGION HAS ESCALATED TO REGIONAL ALERT DUE TO  PROTESTS TOMORROW MORNING WHICH WILL IMPACT ON THE NORTH WEST NETWORK. North WestNoYes
          
          
          
          
      • Grizzlydad's avatar
        Grizzlydad
        Helper I

        So I want to extract from the message column, which region and whether alert or response was used.  The message column often contains text written inconsitently

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi Grizzlydad 

    Is this problem sloved? 
    If it is sloved, could you kindly accept it as a solution to close this case and help the other members find it more quickly?
    If not, please feel free to let me know.
     
    Best Regards
    Maggie