Forum Discussion

Krcmajster's avatar
Krcmajster
Helper IV
4 years ago
Solved

Use column values as headers (pivot when there is no unique values)

The title might not the be the best representation.  I want to load all the flies in the specific folder from Sharepoint. Problem is that users can change column names from time to time, and althoug...
  • v-jingzhang's avatar
    4 years ago

    Hi Krcmajster 

     

    You can refer to this blog: Rename column names in a dynamic way with #Excel #PowerQuery | wmfexcel. It should be helpful. The idea is that you need to have a name mapping table in advance. Since you query data from files in a sharepoint folder, you can perform the column renaming operation on the sample query right after Source step in it. Then it should be applied to the combined query. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.