Sample Data
This table lists products with some repeated names.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| A5 | Banana |
| A6 | Apple |
This table lists products with some repeated names.
| Cell | Value |
|---|---|
| A1 | Product |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| A5 | Banana |
| A6 | Apple |
NewProduct = SUBSTITUTE(Table1[Product], "Banana", "Orange")A 1 Product 2 Apple 3 Banana 4 Cherry 5 Banana 6 Apple Formula references Table1[Product] column cells A2 to A6.
A B 1 Product NewProduct 2 Apple Apple 3 Banana Orange 4 Cherry Cherry 5 Banana Orange 6 Apple Apple
Replace Values in Power BI's Power Query?Table.ReplaceValue in Power Query M language?Replacer.ReplaceText and the columns must be passed as a list, e.g., {"Status"}.let
Source = Table.FromRecords({[Name="John", Age=30], [Name="john", Age=25]}),
Replaced = Table.ReplaceValue(Source, "john", "Jonathan", Replacer.ReplaceText, {"Name"})
in
ReplacedTable.ReplaceValue(Source, "N/A", null, Replacer.ReplaceText, {"Score"})Replacer.ReplaceValue, not Replacer.ReplaceText.Pass the test and this pattern moves unknown