Forum Discussion
Anonymous
1 year agoNot applicable
Text.Contain in M Query to check if Value Column Contains Consonant
Hello, I need help. I am using a table to create a new column that checks a column named Value for a consonant. If it contains a consonant, the column is true. Otherwise, it is false. The formula w...
- 1 year ago
Use this
List.ContainsAny(Text.ToList(Text.Lower([Value])), List.Difference({"b".."z"}, {"e", "i", "o", "u"}))
Vijay_A_Verma
1 year agoMost Valuable Professional
You can use this in a custom column
List.ContainsAny(Text.ToList([Value]), List.Difference({"b".."z"}, {"e", "i", "o", "u"}, Comparer.OrdinalIgnoreCase))
- Anonymous1 year agoNot applicable
That removes errors, which is excellent, but still created some false positives.
All the false positives are capital letters; they need to be case-insensitive.
- Vijay_A_Verma1 year agoMost Valuable Professional
Use this
List.ContainsAny(Text.ToList(Text.Lower([Value])), List.Difference({"b".."z"}, {"e", "i", "o", "u"}))