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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Changing source from imported Excel to SQL Server Query

An end user created beautiful visualizations using an imported spreadsheet into SQL. Is there anyway to seamlessly switch the data source from Excel to an SQL Server Query?

 

The query from the imported spreadsheet was named 'Sheet1'. I tried renaming it to 'OldSheet1' and naming the SQL Server query 'Sheet1', but the visualizations lost all the data. When I clicked on the 'Fix This' button on each visualization, the visualization simply disappeared.

 

Thanks in advance!

 

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

So, create a new query that connects to the SQL Server. Make sure that all the column names and such are the same. Go into Advanced Editor and copy the Source line. Go into the Excel query, into Advanced Editor and replace the Source line there, maybe the navigation step as well. As long as the query stays the same name and all the columns, you should be OK.



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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.