Forum Discussion
Dynamic Column Renaming based on Drop Down List
Hi Anonymous ,
You can try to convert them to list to rename the columns' name.
Please refer these articles which introduce it in details:
In addition, you can try to create a custom function to rename them:
Using M to dynamically change column names in PowerQuery
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Yingjie Li,
I've tried it via number 1, and got a list of lists with an additional column for the FilterAssetClass choice in this example. But I'm not able to figure out how to make it conditional on the user choice.
If I wanted to convert from the 5 column names to 5 other names only it would work, but I want to convert 5 columns names to 5 other names based on what the user has sellected and it's that condition that I'm stuck on if you have any advice?
Essentially I want it to take in the dropdown list selection, and check that selection through a table and then when it matches replace old columns to new columns (specific to that dropdown list). Which I think neither of the links helps with.