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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.