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

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.


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

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.