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
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/

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.


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

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.