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
gusdahu
Helper IV
Helper IV

How to change file source type

Power BI Community,

 

I started on my current report with a single .xlsx file as the data source while I tried to figure out all the steps and DAX I needed to create a functioning model. Now that I've completed the model, I would like to link the data source to a folder rather than an .xlsx file. The .xlsx files in the folder are the same as the initial .xlsx document source, just for different date ranges of data. 

 

How do I go about changing my source type?

 

Regards,

Gus Dahu

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Well, that's a fairly complex scenario for generally a relatively simple thing. The general advice is to use the Advanced Editor but typically when you are doing this, you are just switching from an Excel file to a SQL table for example. The basic method is that you create a new query that connects the way that you want to the new data source that you want. You then go and copy the Source and Navigation lines from that query in Advanced Editor and using Advanced Editor on the original query replace the Source and Navigation lines.

 

For converting from an xlsx to a Folder query, that's going to be tricky. Might be better to start with a new Folder query and use Advanced Editor to transfer over any transformation activities from your original query. Then, before you Apply or Close and Apply, rename your original query to something else, rename the Folder query to the original query name and then remove your old query. This way, when the query executes and creates the table in the data model, to the reports and such, nothing has changed.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Well, that's a fairly complex scenario for generally a relatively simple thing. The general advice is to use the Advanced Editor but typically when you are doing this, you are just switching from an Excel file to a SQL table for example. The basic method is that you create a new query that connects the way that you want to the new data source that you want. You then go and copy the Source and Navigation lines from that query in Advanced Editor and using Advanced Editor on the original query replace the Source and Navigation lines.

 

For converting from an xlsx to a Folder query, that's going to be tricky. Might be better to start with a new Folder query and use Advanced Editor to transfer over any transformation activities from your original query. Then, before you Apply or Close and Apply, rename your original query to something else, rename the Folder query to the original query name and then remove your old query. This way, when the query executes and creates the table in the data model, to the reports and such, nothing has changed.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg_Deckler,

 

Thank you for your response!

 

What you just described sounds fairly complex. Since I already know what my changes are going to be, I think it may be easier for me to set up a new dashboard and link it to a folder.

 

Best regards,

Gus Dahu

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.