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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.