Forum Discussion

amandabus21's avatar
amandabus21
Helper V
3 years ago

Conditional Column

Hello,

 

Im adding a conditional coliumn where I want it to do : 

 

If Case containts "PED" then Pedestrians.

 

Is there a way I can make it that the word "PED" is its own word. I keep getitng a result where PED is in a word and not its own word. 

Example I dont  "WIPED" as a result. 

8 Replies

    • amandabus21's avatar
      amandabus21
      Helper V

      It could be beginning of a word example "Pedestrain" or its own word "PED" 

      • KeyurPatel14's avatar
        KeyurPatel14
        Responsive Resident

        Hi amandabus21 ,
        Can you please sample data and expected output as it will help me to solve this quicker?
        Thank you.

  • You can try this:

    left([your column],3) = "PED"

    Only the first 3 words will be checked.

    • amandabus21's avatar
      amandabus21
      Helper V

      How would I add that in power query?

       

      I have a few other conditions in there.

       

      • andhiii079845's avatar
        andhiii079845
        Solution Sage

        In this case i would create a translations table with the current value and the new value to maintain it better.