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

DirectQuery option disabled to SQL Server database

I have Personal Gateway installed and connected to the database I want to use.

 

How do I activate the DirectQuery option within PBI Desktop when trying to Get Data?  Is there a setting somewhere to allow this choice?

 

1 ACCEPTED SOLUTION
BhaveshPatel
Community Champion
Community Champion

Yes. You are right. You can use either of this ( Direct Query or Import) in a single .pbix file.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Each  pbix file can only use one Data Connectivity mode. So if you had previously uploaded data via "Import", you will not be able to use "DirectQuery" within that same report. Solution is to open up a brand new report; as you will see, the DirectQuery option will be selectable. 

v-sihou-msft
Microsoft
Microsoft

@SCTDev

 

You just need to select "Direct Query" when "get data" from SQL Server Database as @BhaveshPatel mentioned. Since there're limitation for DAX calculations when using Direct Query, you may "allow unrestricted measure in Direct Query Mode".

 

6.PNG

 

For more details, please see: Use DirectQuery in Power BI Desktop.

 

Regards,

 

BhaveshPatel
Community Champion
Community Champion

You do not need any gateway or anything else to connect with sql server in direct query mode.

 

When you choose to connect to the SQL Server Instance, It will ask you to choose either Import or Direct Query mode.

 

See below screenshot.

DirectQuery connectionDirectQuery connection

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

My option is dimmed and therefore unselectable.  Likely because I already used the Import feature for previous data and it won't let me select data using both methods.  Of course, I am not certain of this.

BhaveshPatel
Community Champion
Community Champion

Yes. You are right. You can use either of this ( Direct Query or Import) in a single .pbix file.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors