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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
CatInATuxedo
Regular Visitor

Is it possible to have more than one sample file?

Greetings all, 

 

I've been stuck on this for quite a while, and no amount of browsing or Copilot is helping.

 

I have a folder with many Excel files within it. The files have many sheets, however I am only interested in two sheets: let's call them "Apples" and "Pears". Connecting to the folder in Power BI, I'm able to edit the "Transform Sample File", and in doing so, obtain another query with all the "Apples" sheets appended together with the same transformation. Perfect.

 

Problem is, the "Pears" sheet requires different transformations, and so can't just be appended onto the end of "Apples" because the columns are different (if that's even possible). Is there any way to have two sample files, so I can repeat the process described above with the other sheet? I have tried duplicating the queries and functions and all sorts, nothing seems to work. 

Thank you

1 ACCEPTED SOLUTION

Thank you for your answer, first of all. From it, I have just discovered that I can do the entire process as I described again (in the same file), and it solved the problem. I thought the importing process was just a one-time ordeal.

CatInATuxedo_0-1739869792942.png

Now I feel like a real idiot. So you're saying I should get rid of all the code and try and do it from scratch? What's wrong with it as it is (with all due respect)?

View solution in original post

5 REPLIES 5
lbendlin
Super User
Super User

The "Combine Binaries"  function is a convenience for novice developers.  Once you have read and understood the created Power Query code you are supposed to delete all of it including all the other files and the group and never press that button again. 

 

Create your own ingestion code as a function, inline or separate.

Thank you for your answer, first of all. From it, I have just discovered that I can do the entire process as I described again (in the same file), and it solved the problem. I thought the importing process was just a one-time ordeal.

CatInATuxedo_0-1739869792942.png

Now I feel like a real idiot. So you're saying I should get rid of all the code and try and do it from scratch? What's wrong with it as it is (with all due respect)?

It adds all these artifacts you are showing here and it loads the sample file twice.

Ah I see what you mean now, a cleaner way to do it. I didn't realise there were more ways to do it, but I'll look into it for sure. Thank you for your replies

Hi @CatInATuxedo ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.