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
highxsky
Regular Visitor

Slow queries impact on Power BI user interaction

Hi all,

 

So I was working on a Power BI project lately and encountered performance issues, more specifically thrashing (my computer was very unresponsive and memory & disk were running nearly 100%).

 

My issues were partially related to many queries, including unoptimised ones, in Power Query.

Unchecking the "parallel loading" option worked for me.

 

As I am working on documenting common performance issues, diagnosis tools and suggested solutions, I'd like know more about what's going on in Power BI and the relationship between Query and Visualization parts.

 

So my question is: what is the relationship between Power Query and Power BI (visualization screens)?

- Could unoptimized queries impact the visualization part of the solution? I mean, once the data is refreshed and loaded, should it work fluently?

- If performance issues are encountered (i.e. slow queries) in PQuery, can it impact the user interaction in PBI as well?

 

Thanks in advance for your replies and hints,

 

Regards,

 

Pierre

1 ACCEPTED SOLUTION

When you refresh the data, any slowness you see is due to the queries, but also any calculated columns and calculated tables.  If you are seeing slowness when interacting with slicers, navigating pages, etc. that is due to unoptimized DAX measures.  Also add some of the SQLBI blogs/videos to optimize your DAX expressions too.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hi, @highxsky 

 

I wonder what connection mode you are using. For import mode, upon load, all of the data defined by those queries will be imported into the Power BI cache. Upon building a visual within Power BI Desktop, the imported data will be queried. The Power BI store ensures the query will be fast. All changes to the visual are reflected immediately. Any changes to the underlying data aren't reflected in any visuals. It's necessary to Refresh to reimport data.

 

For DirectQuery mode, upon load, no data is imported into the Power BI store. Instead, upon building a visual within Power BI Desktop, queries are sent to the underlying data source to retrieve the necessary data. The time taken to refresh the visual depends on the performance of the underlying data source. Any changes to the underlying data aren't immediately reflected in any existing visuals. It's still necessary to refresh. The necessary queries are resent for each visual, and the visual is updated as necessary.

 

For further information, please refer to the following documents.

About using DirectQuery in Power BI 

Optimization guide for Power BI 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Mariusz
Community Champion
Community Champion

Hi @highxsky 

 

Power Query is more like a ETL tool that transforms the data and loads it into the model ( VertiPaq Engine ).

So to answer your question it should not ( or else you are working in direct query mode ).

Designing your data model / dataset / DAX Measures correctly will have an impact on the performance.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

 

 

Hi Mariusz,

Thanks for the reply !

 

Regarding data model: I have some tables that I generate in DaX.

The effort is on Power BI and not Power Query then?

If so, then I may want to reproduce these tables, in Power Query only.

 

The reason I ask, is because, on many projects, refresh is only made once a week/month, thus users are totally OK with a longer refresh, as long as UX is reactive.

Thanks for the reply!

I had already checked these links as part of my documenting work on performances, along with Chris Webb's (great) posts.
I may want to re-read more thoroughly these links though, as I assume they provide hints to my question on the relationship between PQuery and PBI.

 

To me, the relationship was not so obvious: it's different modules (PQuery, PBI interface), with different languages, but part of the same global tool (Power BI).

Furthermore, the thrashing issue I encountered clearly came from Power Query, but had an impact on the UX in PBI (and on my computer, big time...), thus I was tempted to make the connection between the two, as it still occurred when data was not refreshing.

When you refresh the data, any slowness you see is due to the queries, but also any calculated columns and calculated tables.  If you are seeing slowness when interacting with slicers, navigating pages, etc. that is due to unoptimized DAX measures.  Also add some of the SQLBI blogs/videos to optimize your DAX expressions too.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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
Top Kudoed Authors