Forum Discussion
Sharepoint data source column names
- 4 years ago
Hi FlatFish ,
If you have a Names table that corresponds to the name before and after the modification, then you can use the Table.ToRows function to convert the Names table to a list, and then use this list to rename all columns of the table.
#"Renamed Columns" = Table.RenameColumns( #"Changed Type", Table.ToRows(Names) )Referencing: https://www.youtube.com/watch?v=G40uw2LLMJA&t=615s
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you know the column names you would like to have, and your lists always come in the same order then you can use Power Query Table.RenameColumns - PowerQuery M | Microsoft Docs or Table.TransformColumnNames - PowerQuery M | Microsoft Docs functions.