Forum Discussion
Anonymous
7 years agoNot applicable
Update column value without creating new column
Hi Team, I am new to Power BI and i would like to know the best possible solution for below condition: I would like to update column value (data source is sharepoint custom list). For example, i...
- Anonymous7 years ago
Hello, Anonymous
Power Query
Enter in your query, click in the FX icon near the formula bar and insert this code:
= Table.ReplaceValue( #"PreviousStep" ,each [col1],each if Text.Contains([col2], "Admin") then "OOF" else [col1],Replacer.ReplaceValue,{"col1"})
Change the name of the step in red and you are ready to go.
Anonymous
7 years agoNot applicable
Hello, Anonymous
Power Query
Enter in your query, click in the FX icon near the formula bar and insert this code:
= Table.ReplaceValue( #"PreviousStep" ,each [col1],each if Text.Contains([col2], "Admin") then "OOF" else [col1],Replacer.ReplaceValue,{"col1"})
Change the name of the step in red and you are ready to go.
Anonymous
7 years agoNot applicable
Hi Anonymous
Thank you for the prompt reply.
This is exactly what I was looking for