Forum Discussion
Syndicate_Admin
2 years agoAdministrator
Using ReplaceValue to conditionally replace a cell with a numeric value based on another column's value
I've seen lots of suggestions for when one is populating cells with text, but what if the new value is a number? In the example below, I filtered a table to a single row and requesting if the ticker...
ronrsnfld
2 years agoSuper User
You old value argument is incorrect
= Table.ReplaceValue(
#"Filtered Rows1",
each[Total Cost],
each if Text.Contains([Ticker],"T") then 5 else 3,
Replacer.ReplaceValue,
{"Total Cost"})