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
joelv67
Frequent Visitor

Reference Table in Power Bi vs. Sql Query or View...

A little background. I have a logging DB. For one report (Historical), I am pulling in the Logs table and generating are report on that data.

In this Logs table, is also Start and End logs that I use to create some reports on Task Run Times.  I am currently pulling this data in seperately via a View that filters on the Sql side to only Start and End types of tasks.

 

My question is, this seems to be pulling some of the same data twice.  Would it be better to have my 2nd "query" reference the PowerBI "Logs" query as it's source vs. the Sql View.  My thought is that PowerBI already has the entire log table, so just refernce it internally for my new Query and then do manipulations to "Filter" out any Non Start/End tasks.

 

It is not clear if by doing so, I will be pulling in the Logs table twice or just once an then truly referencing the "in memory" PowerBi data for the new Query.

 

Thanks you

Joel

 

ps, A similar question if using the new experimental "Power Bi as a Datasource", does that reduce the load on the Sql server, referencing an existing Power BI dataset?

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @joelv67,

 

If you retrieve data from SQL view in desktop, and need to do other data transformation for this query, I would suggest you reference the log table query in Power BI desktop directly, then do filter and transformation steps on Power BI desktop.

 

To use Power BI Service data source in desktop, it connects to dataset model which already published to service, willn't hit the SQL Server directly. For more information, see: Connect to datasets in the Power BI service from Power BI Desktop (Preview).

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @joelv67,

 

If you retrieve data from SQL view in desktop, and need to do other data transformation for this query, I would suggest you reference the log table query in Power BI desktop directly, then do filter and transformation steps on Power BI desktop.

 

To use Power BI Service data source in desktop, it connects to dataset model which already published to service, willn't hit the SQL Server directly. For more information, see: Connect to datasets in the Power BI service from Power BI Desktop (Preview).

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Fabric 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.