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
Anonymous
Not applicable

Very slow visual

Hi expert,

I have a visual took over 97 second to show.

The connection method is DQ and I've eliminated the column don't need.

Can someone help me to revise the query so that the performance can improve?

 

 

DEFINE VAR __DS0FilterTable = 
  FILTER(
    KEEPFILTERS(VALUES('dim_time'[dataTime])),
    'dim_time'[dataTime] >= DATE(2019, 12, 5)
  )

EVALUATE
  SAMPLE(
    3502,
    SUMMARIZECOLUMNS(
      'dim_time'[dataTime],
      __DS0FilterTable,
      "Maxmax_Process_PrivateBytes_coreServiceShell", CALCULATE(MAX('vw_osmetrics_hour'[max_Process_PrivateBytes_coreServiceShell])),
      "Maxmax_Process_WorkingSet_coreServiceShell", CALCULATE(MAX('vw_osmetrics_hour'[max_Process_WorkingSet_coreServiceShell])),
      "Maxmax_Process_PrivateBytes_dsa", CALCULATE(MAX('vw_osmetrics_hour'[max_Process_PrivateBytes_dsa])),
      "Maxmax_Process_WorkingSet_dsa", CALCULATE(MAX('vw_osmetrics_hour'[max_Process_WorkingSet_dsa]))
    ),
    'dim_time'[dataTime],
    1
  )

ORDER BY
  'dim_time'[dataTime]

 

 

 

3 REPLIES 3
MattAllington
Community Champion
Community Champion

If you are using direct query, you need to get your dba to analyse the query being sent to the DB and optimise from there. It is unlikely to be the DAX. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

Hi Matt,

Thanks for your reply!

I've revised the question.

The query showed in the question is the query sent to the DB (Kusto in this case) I collected through DAX studio.

 


This doesn't change anything. There are two main ways you can use Power BI. Firstly you can use import mode, where all the data is loaded into a tabular data model. You can improve the performance of an import model with better DAX (assuming you have a DAX problem).  The second method is direct query mode. In the second mode Power BI generates a query and sends it to the underlying database to be fulfilled. If the performance is bad then is there is an issue with the database, not Power BI. You should ask your DB developer to monitor the query going to the database and create indexes and/or other changes to improve the performance of the query. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

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.