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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


@ 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...

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.


@ 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...

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.