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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
BuistJF
Helper I
Helper I

Change DirectQuery Power BI Dataset to SQL Server and all visuals adobt the new SQL Server Dataset

I have a large report that is currently linked to a direct query, published PBI dataset. I want to have the SQL logic that creates the published PBI dataset within the PBI report as a SQL Server import dataset.

 

I want all the visuals in the report to auto regonise this new dataset (all columns and data types will be the same as the orginal dataset) as the direct query will be deleted. Is there an easy way to do this rather than having to manually update each visual?

 

If it was a mater of switching between 2 sql server import queries that is easly managed in Power Query. Obviously when attched to a direct query, PBI dataset there is no advanced editor avaiable in transform data for obvious reasons.

1 REPLY 1
lbendlin
Super User
Super User

Do it in two steps

 

1. Change the Direct Query source from dataset to SQL server table or view.  Make absolutely sure that the result is exactly the same, down to the spelling and punctuation.   Cannot emphasize this point enough

2. Change the storage mode from Direct Query to Import Mode.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.