Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

DAX and Power BI Optimization

I m new to DAX and Power BI and need help in improving performace in Power BI. There are 25-30 tables that contain about 15 columns each and is expected to have about 2 million rows. We are using D...
  • AlbertoFerrari's avatar
    8 years ago

    Unfortunately, you are looking in the wrong direction.

     

    Most of your questions are about DAX and the Power BI model but, if you use DirectQuery, there is not much that you can do in DAX to improve performance. We analyzed the performance and implications of DirectQuery in this whitepaper: https://www.sqlbi.com/articles/directquery-in-analysis-services-2016/. 

     

    The quick conclusion is: try to reduce DAX usage to a minimum and super-optimize your SQL database so that it will answer quickly to the specific queries Power BI will generate. The description of the reasons is in the whitepaper.

     

    Besides, the real question here is: why using DirectQuery at all? Your model is a tiny one, the data refresh should be very fast and, by avoiding DirectQuery, you would remove most of your speed issues.

     


    Have fun with DAX!

    Alberto Ferrari
    http://www.sqlbi.com