Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

ReplaceValue with two conditions

#"Valor Substituído99" = Table.ReplaceValue(#"Valor Substituído95", each[BAIRRO], each if[Município]="Arapiraca" and [Bairro]="São Luiz" then "São Luiz I" else[BAIRRO], Replacer.ReplaceText,{"BAIRRO"...
  • v-yingjl's avatar
    6 years ago

    Hi Anonymous ,

    Try to use Replace values option in the Transform menu and refer the formula:

    = Table.ReplaceValue(#"Changed Type",each [BAIRRO],each if  [Municipio] = "Arapiraca" and [BAIRRO] = "Sao Luiz" then "Sao Luiz I" else [BAIRRO] ,Replacer.ReplaceText,{"BAIRRO"})

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.