Forum Discussion

strdst2090's avatar
strdst2090
Frequent Visitor
1 year ago
Solved

Multiple IF Conditions

I have a large dataset (about 300,000 records), and I have to build a custom column based on one of the columns in the dataset. The custom column is basically an 'IF-ELSE' condition, however I have t...
  • PwerQueryKees's avatar
    1 year ago

    Even better would be to add some exception handling: Return all replacement values found, (separated by commas) and an empty string if no conditions are found:

     

    =  Text.Combine(Table.SelectRows(ReplaceConditions, (current_row) => Text.Contains([Line Description], current_row[SearchText]))[ReplaceText],",")