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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Power Query: add column to combine Excel sheet and then expand list but see duplicated table

Hi Experts

 

I have a query with 2 spreadsheet as its data source.

After locating the files, I add custom column (with coding below) to combine the sheets out of them.

= Table.AddColumn(#"Filtered Rows2", "Custom", each Excel.Workbook([Content],null)[Data])

Then I got screenshot below.

yamacha_0-1626165084726.png

Then I expand the list, then here comes the problem: the sheets are (more than) doubled... There are total 4 sheets in these 2 files, but I can see 9 expanded. The calculated result also demonstrates this finding. There is no hidden sheet. No idea how to solve this.

Thanks.

yamacha_1-1626165168754.png

 

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@Anonymous Sheets aren't the only object you can import from Excel. Do you have any tables or other data in the sheets? 

 

If you click in the white space next to the word table in your second screenshot above, you'll get a preview of what information is in each table so that might give you a hint where it's coming from.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

@Anonymous Sheets aren't the only object you can import from Excel. Do you have any tables or other data in the sheets? 

 

If you click in the white space next to the word table in your second screenshot above, you'll get a preview of what information is in each table so that might give you a hint where it's coming from.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Thanks Allison. Inspired by your suggestion I tried to check the hidden content of the spreadsheets in the PQ, and found there do exist couple of invisible stuff and removed them.

Now it's ok.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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