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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Direct Query SQL Server Database

Hi All,

 

I am currently working on project- Dashboard- and I used direct query to connect to a SQL databse server. The goal is to have a dashboard that updates/refreshes based on the data from the server.

I have a couple of questions as follows
a)what will happen to the main data source is If I use the query editor to clean up/modify the various tables to suit the needs of my project

b) I have read elsewhere that direct query can impact performance and calculation functions. Is this the case?? Do I use the import option instead and will that help with refreshing in powerbi service??

c) I have a total of 15 tables in the particular databse name that I am using for the project. All the tables have systemID and primary key. Will the system key be the best way to connect all the tables??

Your kind ideas are welcome

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Couple thoughts,

 

a) Queries are read only, the source data will remain the source data regardless of modifications made in the query

b) So, with Direct Query you are making a call to the source whenever calculations are made and visuals are displayed. So, depending on numerous factors, yes there can be a performance impact. Import models can help address these as all of the data is then stored in the Power BI Service

c) Sounds like the way to go, but would need to fully understand your data model to be certain



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Couple thoughts,

 

a) Queries are read only, the source data will remain the source data regardless of modifications made in the query

b) So, with Direct Query you are making a call to the source whenever calculations are made and visuals are displayed. So, depending on numerous factors, yes there can be a performance impact. Import models can help address these as all of the data is then stored in the Power BI Service

c) Sounds like the way to go, but would need to fully understand your data model to be certain



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable


@Greg_Deckler wrote:

Couple thoughts,

 

a) Queries are read only, the source data will remain the source data regardless of modifications made in the query

b) So, with Direct Query you are making a call to the source whenever calculations are made and visuals are displayed. So, depending on numerous factors, yes there can be a performance impact. Import models can help address these as all of the data is then stored in the Power BI Service

c) Sounds like the way to go, but would need to fully understand your data model to be certain


Hello Greg, Many thanks for sharing your thoughts on this case. Is it possible for you to remote in to see my model??

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors