Forum Discussion
Replace Value in Whole Table
- 7 years ago
You can do this by using the Table.ColumnNames function in replacement of the specific column list. E.G. Table.ReplaceValue(#"Last Step",null,"-",Replacer.ReplaceValue,Table.ColumnNames(#"Last Step"))
I'm afraid there's no better way to achive that. I would suggest you modify or add steps in query editor to replace the values in whole table.
Regars,
Cherie
- sckienle7 years ago
Advocate II
You can do this by using the Table.ColumnNames function in replacement of the specific column list. E.G. Table.ReplaceValue(#"Last Step",null,"-",Replacer.ReplaceValue,Table.ColumnNames(#"Last Step"))
- philipblondewwt7 years agoNew Member
This solution works and resolves replacing values in columns that can have changing names.
- Anonymous6 years agoNot applicable
Excellent re whole table thanks!
- Anonymous3 years agoNot applicable
Champion! Thanks.
- v-cherch-msft7 years ago
Microsoft Employee
It seems you may have a look at below two articles to check if they could help you.
https://blog.crossjoin.co.uk/2014/09/18/handling-data-source-errors-in-power-query/
https://blog.crossjoin.co.uk/2015/02/26/handling-added-or-missing-columns-in-power-query/
Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.
Regards,
Cherie