cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors