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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
aviku
Frequent Visitor

Performance enhancement tricks when using Direct Query to get data from SQL server

Hi,

 

I am using PBI Desktop to create PBIX files which I later upload to Power BI Embedded (PaaS solution). The PBIX gets data from Azure SQL server in Direct Query mode. I want to increase the efficiency of queries that Power BI Embedded sends to SQL for getting my data.

 

Please advice if the following options will help me increase the efficiency of queries, thus reducing the time taken by the pbix to load: -

 

1. Using Advanced Options in the Get Data dialog box : Inserting a SQL statement here will get only specific data instead of the entire table. This will reduce the data I see in PBI Desktop, but will it really increase the efficiency of queries sent to SQL for the creation of charts? Eg: Say PBIX needs to create a join between two tables. If I use the advanced options, will the Join be done on reduced data?

 

2. Using Filters to filter out unwanted rows of the table : Again like above option, this will reduce the data I see in PBI Desktop, but will it really increase the efficiency of queries sent to SQL for the creation of charts? Eg: If I use filters, will the Join be done on reduced data?

 

 

Please redirect this to appropriate forums as necessary

 

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @aviku,

 

Based on my understanding both the options above will help increase the efficiency of queries, as all queries sent to the source database will run against only specific data instead of the entire table in this scenario, thus reducing the time that back-end source takes to respond.Smiley Happy

 

Regards

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.