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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.