Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
FlatFish
New Member

Sharepoint data source column names

Hi everyone,

 

I have two lists from Sharepoint I use to connect to a power BI file and when connected half of the column names come up by the name they are listed as in Sharepoint and the others come up as "field 0, field 1, field 2" etc. Rather than manually change them each time I upload the lists; is there a way for the column names to be uploaded by the names in sharepoint? I understand that the field X names are their actual names.

 

Thank you in advance!

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

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.

 

vkkfmsft_0-1641537669656.png

 

 

#"Renamed Columns" = Table.RenameColumns( #"Changed Type", Table.ToRows(Names) )

 

 

vkkfmsft_1-1641537754297.png

 

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.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

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.

 

vkkfmsft_0-1641537669656.png

 

 

#"Renamed Columns" = Table.RenameColumns( #"Changed Type", Table.ToRows(Names) )

 

 

vkkfmsft_1-1641537754297.png

 

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.

lbendlin
Super User
Super User

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors