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
AW1976NOVA
Post Patron
Post Patron

Get Data: From Folder - But only keep one instance of the column headers

Hi,

 

I'm trying to build a dashboard where I'm pulling data in to Power BI from a folder.  Two different files (named differently) get dropped to this folder each business day and I'd like to build a Power BI dashboard so that when I refresh it...it pulls in each version of each file and combines everything.

 

The issue I'm running into is that file A has 10 columns and file B has 11 columns.  Since 10 out of the 11 columns are named the same, Power BI is smart enough to combined these instances together between the two file types.  Power BI correctly brings in the 11th column.  So this is all working correctly.

 

However...what I'd like to do is prevent Power BI from bringing in the column headers for each file upon import.  I'd like to only keep the very first instance of column headers.  That way I won't have to bring in the column headers for each file once updated.

 

How does one accomplish this?

3 REPLIES 3
Greg_Deckler
Super User
Super User

I am not quite following this, can you post an example of what you are seeing now and what you want?

Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Pragati11
Super User
Super User

HI @AW1976NOVA ,

 

I think you need to 1st import both files from the Folder, then COMBINE these files in Edit Query section.

Refer following link:

https://docs.microsoft.com/en-us/power-bi/desktop-combine-binaries

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Mariusz
Community Champion
Community Champion

Hi @AW1976NOVA 

 

You can just filter out the rows that contain the column headers or create a function that will skip the column headers.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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