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

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

Reply
Anonymous
Not applicable

How can I quickly create column names for 150+ columns using a file?

Hi everyone,

 

I am importing a text file, and I figured out the number of characters each column has and I filled in the custom delimiter field and everything is lined up nicely and makes sense. However, there are almost 180 columns and the data does not include a row I can promote to the title of each column in Power Query. I have an excel list that contains the name of each column, so I know what each one needs to be renamed to... is there a way I can have Power BI do this for me, rather than going into each column and manually renaming?

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

yes, you can read the table of your excelfile in a own query. Then use the function provided by  @Anonymous  to rename it. You basically have to transfor the column with new names to a list and name the query "newNamesList". Then the approach will work.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

yes, you can read the table of your excelfile in a own query. Then use the function provided by  @Anonymous  to rename it. You basically have to transfor the column with new names to a list and name the query "newNamesList". Then the approach will work.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Anonymous
Not applicable

Table.RenameColumns(yourTab, List.Zip({Table.ColumnNames(youTab), newNamesList}))

 

Helpful resources

Announcements
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 Kudoed Authors