Forum Discussion

3 Replies

  • arvindarvind24 ,  a new column in the power query

     

    if Text.Contains([Question], "1") then [#"Score"],

    else if [Question] then Text.Replace([#"Score"],"No","Yes")

    else Text.Replace([#"Score"],"Yes","No")

  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    Icon for Community Support rankCommunity Support

    Hi arvindarvind24 ,

     

    if Text.Contains( [Question], "1")
    then [#"Score"]
    else 
    (
        if Text.Contains([Score], "No")
        then Text.Replace([Score],"No","Yes")
        else Text.Replace([Score],"Yes","No")
    )

     

    Result:

    Best Regards

    Community Support Team _ chenwu zhu

     

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