cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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

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

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors