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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SkorpionAAM
Helper V
Helper V

Chnage Data Source

I am trying to chnage the data source(sql connection) to Google Sheet (Web) power BI reports i am using gateways also.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@SkorpionAAM 

I Just did this this afternoon. The premise to ensure all is well is to make sure that all the column names remain unaffected.
Here are the steps I followed:

1) save your original Desktop file ("Original File") with a new name to test the new source: let's call this "Test File".

2) Save a backup copy of your original PBIX file with a different name just in case...Let's call this "Backup File"

3) open a new PBI file and carry out the import from the new source in Power Query. Make sure the column headers are excactly the same as the original table. Let's call this file "New Import File".

4) Copy the whole M code from your new PBI file import query (from "New Import File"). Select the query in the newly saved copy of original ("Test File"), and replace the M code in the query.

5) Apply changes and check that there are no errors in the tables/measures.

6)) If all is well, save this file to replace (same file name) the original ("Original File").

7) If there is a problem, you have the "Backup File" to fall back on

 

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@SkorpionAAM 

I Just did this this afternoon. The premise to ensure all is well is to make sure that all the column names remain unaffected.
Here are the steps I followed:

1) save your original Desktop file ("Original File") with a new name to test the new source: let's call this "Test File".

2) Save a backup copy of your original PBIX file with a different name just in case...Let's call this "Backup File"

3) open a new PBI file and carry out the import from the new source in Power Query. Make sure the column headers are excactly the same as the original table. Let's call this file "New Import File".

4) Copy the whole M code from your new PBI file import query (from "New Import File"). Select the query in the newly saved copy of original ("Test File"), and replace the M code in the query.

5) Apply changes and check that there are no errors in the tables/measures.

6)) If all is well, save this file to replace (same file name) the original ("Original File").

7) If there is a problem, you have the "Backup File" to fall back on

 

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@SkorpionAAM , I think a difficult one.

Make sure all column names are the same and in the same case.

 

Create a new connection and add the tables from other sources.

 

Open transform data/edit query, right on the table and open advance editor, take the code from a new source and replace it in the old source. Carefully replace the connection and column list only.

 

Keep a backup of the original file. This might not work.

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors