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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Column Name Error after Data Source Change

Hi Gurus,

I have run into a problem after I changed my data source from SQL server to a local excel file.

I used the Advanced Editor and it worked fine.

But when I click "Close and Apply" it gives me errors that all my column names are in use on the table thus unable to apply the changes. I changed one column name in the Query Editor but it continues to give me errors for other columns.

The old and new tables are exactly the same content. I also tried to change the name of the table in the Query Editor but the same errors happen.

 

Untitled.png

8 REPLIES 8
deeramm33
New Member

I spelt Business (BUSSINESS!!) when I correct this, I get all the errors!!  Any ideas? Thanks

Hi @deeramm33 ,

 

Are you changing the column name in data source? what is the error looks like?

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Morning, Yes Im changing the data source!

 

error !column 'bussiness unit' of the table was not found

Hi @deeramm33 ,

 

It seems like your query use the column name , please try to verify and change them in the Advanced Editor, Please refer to this document about Advanced Editor: https://docs.microsoft.com/en-us/power-bi/desktop-query-overview#advanced-editor

 

We suggest you to keep a copy if you want to change it.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mussaenda
Super User
Super User

It happens when you have a calculated column with the same name,

or on your advance editor, you are trying to put this as column editor.

 

Yes Advance Editor will not show you error because it checks the syntax.

Try looking at your advance editor again and check each step you make especially when adding custom or conditional columns.

 

If you want, You can screenshot your advance editor here and cover the confidential data to help you find the error.

If the error cannot be found on adnvance editor, it can be on your dax column name

Anonymous
Not applicable

Thanks, I took a screenshot of the advanced editor.

Untitled.png

Hi @Anonymous ,

 

Based on my test, if there are same column name in excel, the promote header function will rename them automatically. So I think the problem will be the calculate table or column as  @mussaenda  mentioned.

 

11.PNG12.PNG

 

Can you try to connect to this excel file in a empty pbix file to see if it still has error?

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Have you tried  to remove the promoted headers to see if the error will still show?

No, stupid question. Sorry. Of course it will not show because there will be "Column 1" etc. Sorry.

 

For what I understand, we need to find the two columns with the same name

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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