Forum Discussion

PowerAppsUser's avatar
PowerAppsUser
Frequent Visitor
4 years ago
Solved

Replace Values not working

Hi, I am trying to replace the value of a cell with another value in Power Query by right clicking that cell and using 'Replace Value', but it doesnt seem to work. I want to change "null" to "Electr...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    Ah, it sounds like you had the text "null" rather than actual nulls. I didn't pick that up upon the first read.

     

    In that case, you can skip the uppercase transformation and just use "null" instead of null in your original M code (insert the quotes into the formula):

    = Table.ReplaceValue(#"Trimmed Text","null","Electricity",Replacer.ReplaceValue,{"Sector"})