- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Replace values for all columns without ranging
Hi,
I hope to replace values for all columns no matter how many new columns will be added in the future?
Currently I do it ranging particular columns but will come more new columns over time.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @jeongkim - you can modify your Power Query (M code) script to dynamically apply the replacement logic to every column in the table.
slight adjustment as per the mcode change,
#"Replaced Value" = Table.ReplaceValue(
#"Filtered Rows",
null,
0,
Replacer.ReplaceValue,
Table.ColumnNames(#"Filtered Rows")
)
Locate the step where you are replacing values.
Replace your existing hardcoded column names with the dynamic method shown above.
Save and apply the changes.
Proud to be a Super User! | |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @jeongkim - you can modify your Power Query (M code) script to dynamically apply the replacement logic to every column in the table.
slight adjustment as per the mcode change,
#"Replaced Value" = Table.ReplaceValue(
#"Filtered Rows",
null,
0,
Replacer.ReplaceValue,
Table.ColumnNames(#"Filtered Rows")
)
Locate the step where you are replacing values.
Replace your existing hardcoded column names with the dynamic method shown above.
Save and apply the changes.
Proud to be a Super User! | |

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-06-2024 05:35 AM | |||
07-06-2024 05:16 AM | |||
09-18-2024 03:28 AM | |||
04-04-2024 11:24 AM | |||
01-30-2023 12:14 AM |
User | Count |
---|---|
117 | |
96 | |
83 | |
55 | |
46 |