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
Arunraj89
Frequent Visitor

Changing the type of datasource of an existing dashboard

Hi,

 

Someone please help!

 

We have an monthly tracker dashboard which is connected to SQL server database in Import mode. Currently because of new organisation policy, the client says that he can send the data only in excel format. Is there a way to replace the connection from SQL server to Excel/CSV. The data is not a huge one.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Arunraj89 , Thi can be a bit tricky.

You need to create a new connection in a new file. Open Edit Transform data/Edit Query, Right-click on the table and open advance editor and take connection script

 

You can use the script above and replace in exiting file in the advance source

refer

https://www.c-sharpcorner.com/article/how-to-change-data-source-of-existing-report-in-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Arunraj89 ,

 

If the tables and columns of the two data sources are the same, it really makes sense to do so, otherwise it makes no sense.

v-lionel-msft_0-1599628834858.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@Arunraj89 - You need to used Advanced Editor to change out the Source and probably Navigation steps of your Power Query. If you can post your Advanced Editor code here from your original query as well as the Advanced Editor code from creating a brand new query to your Excel/CSV, I can do the magic for you if you @ me in a response. I just recently helped @Anonymous with a similar situation going from a CSV to a Dataflow I think. 

https://community.powerbi.com/t5/Desktop/m-Code-Advanced-query-editor-change-source/m-p/1349873#M579927

 

Otherwise, you are going to have to compare the Source and Navigation steps (first two steps) in Advanced Editor and figure out what to replace in your original query with the steps in your new query.



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...
amitchandak
Super User
Super User

@Arunraj89 , Thi can be a bit tricky.

You need to create a new connection in a new file. Open Edit Transform data/Edit Query, Right-click on the table and open advance editor and take connection script

 

You can use the script above and replace in exiting file in the advance source

refer

https://www.c-sharpcorner.com/article/how-to-change-data-source-of-existing-report-in-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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.