Forum Discussion

renee_crozier's avatar
renee_crozier
Brass Contributor
Mar 06, 2025
Solved

Replacing Value Based on Two Conditions in Power Query

I have a list of people who have access to a certain Site Collection and Subsite. I am trying to replace a value in the Subsite column using an If-Else statement in Power Query to only replace one va...
  • OliverScheurich's avatar
    Mar 06, 2025
    = Table.ReplaceValue(#"Filtered Rows", each [Subsite], each if [SiteCollection]="en_ca" and [Subsite]="D26 Plumbing" then "D26 Plumbing & Bath" else [Subsite] , Replacer.ReplaceValue,{"Subsite"})

    Does this return the intended result?

Resources