Forum Discussion
Contains functionality in Power Query for Power BI
- 2 years ago
although when you load data into power bi it will be as you want because power bi is not case sensitive
but all of these can be done in power query the way you wantpls try this
Ahmedx PijushRoy Hi Guys, worked around and got the solution.
Table.ReplaceValue(#"Change Value", each [Rating], each if Text.Contains([Rating],"High",Comparer.OrdinalIgnoreCase) then "High" else [Rating], Replacer.ReplaceValue, {"Rating"})
In the Applied Steps, I did an insert step after and put the formula there. It used the same column, Rating, as my original values and left null/blank as null/blank and other values without the word High in them alone. All derivations of High in the data set were handled (still need to test the Mod-High) but so far that worked. Just wanted to share since both of your help gave me a big boost in noodling out a solution.