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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AnneGupta
Frequent Visitor

Duplicate Columns Automatically Added

New-ish to Power BI so forgive my ignorance. I imported 12 .txt files with a year's worth of data into Power BI. I appended the queries as they were all formatted the same (or so I thought) as I wanted all of the information in one set. After they were appended, I saw that Power BI had added 3 columns at the end of the set, which are duplicates of other columns in the data. Power BI took the data from the original columns and pushed it out to these added columns, but not for every line. I cannot figure out why this happened, with these 3 columns, which are not consecutive. Looking at these 12 sources on their own in Power BI, the columns aren't added, so something happens when I append them. What could cause this? A suggestion I received was that it could be something to do with the delimiters in the file where it seems to be  happening (1 specific month seems to be the culprit) but when I open the source file, nothing looks off to me, as compared to the other 11 files. Any suggestions on how to figure out the problem and correct it? Picture shows extra columns circled in red.Power BI Example.jpg

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

Hi @AnneGupta ,

This always happen when the column names are not exactly the same. I notice that there is a space before the "Product" column, is this the same in all files? Please also check that there is no space after the column name.

Here's the same problem with you: Solved: Append Query duplicates some columns - Microsoft Power BI Community

 

Best regards,

Community Support Team_kalyj

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-yanjiang-msft
Community Support
Community Support

Hi @AnneGupta ,

This always happen when the column names are not exactly the same. I notice that there is a space before the "Product" column, is this the same in all files? Please also check that there is no space after the column name.

Here's the same problem with you: Solved: Append Query duplicates some columns - Microsoft Power BI Community

 

Best regards,

Community Support Team_kalyj

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors