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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors