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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rosscortb
Post Patron
Post Patron

Changing column name

Hello,

 

What is the best method to changing a column header/name?

 

Should I change the excel column [Name] to [Employee] then do the same in the fields section of Power BI then hit refresh?

 

Will that work? always seem to get the message, column does not exist.

 

Thanks

Ross

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

Hi @rosscortb ,

 

After importing the data , if you change the column name again in data source, then, if you refresh in Power BI Desktop, you will meet an error like this:

c14.PNG

In order to solve the error, you need to modify the code in 'Edit Query', like this:

c16.PNG

 

Best Regards,
Lionel Chen

 

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

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hi @rosscortb ,

 

After importing the data , if you change the column name again in data source, then, if you refresh in Power BI Desktop, you will meet an error like this:

c14.PNG

In order to solve the error, you need to modify the code in 'Edit Query', like this:

c16.PNG

 

Best Regards,
Lionel Chen

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.