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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Community Champion
Community Champion

@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!:
DAX For Humans

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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors