cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cristianml Member
Member

Upload folder to combine one query

Hi,

 

I would like to get only one query with a Specific Name when I upload a folder that has many Excel files but with same format.

For the moment I use UNION to combine the files but I don't want to see every single Excel files in Fields, just the combined one.

How can be done ?

Thanks and regards. 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: Upload folder to combine one query

@cristianml,

After you use Folder connector in Power BI Desktop to import data, you can right-click on the Content column and choose "Remove Other columns" in Query Editor of Power BI Desktop, then expand the Content column to combine data of all excel files in a single query.

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Highlighted
Super User
Super User

Re: Upload folder to combine one query

Read my article here. https://exceleratorbi.com.au/combine-excel-workbooks-power-query-method-1/



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Moderator v-yuezhe-msft
Moderator

Re: Upload folder to combine one query

@cristianml,

After you use Folder connector in Power BI Desktop to import data, you can right-click on the Content column and choose "Remove Other columns" in Query Editor of Power BI Desktop, then expand the Content column to combine data of all excel files in a single query.

1.PNG

Regards,
Lydia

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

Re: Upload folder to combine one query

Thanks Lydia,

 

Now I can manage this. The only thing i didn't know is that Folder option only works for excel files with same tab name. 

 

Thanks and regards !

Super User
Super User

Re: Upload folder to combine one query

By default it expects the same sheet name. But you can edit the code to refer to the relative sheet. Eg Source{0}[Data] will select the first sheet. 



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 56 members 1,326 guests
Please welcome our newest community members: