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
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
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.

Top Solution Authors
Top Kudoed Authors