Understanding DAX pitfalls and optimizations
Before we dive into specific DAX improvements, we will briefly review the following suggested process to tune your DAX formulas.
The process for tuning DAX
In Chapter 5, Desktop Performance Analyzer, and Chapter 6, Third-Party Utilities, we provided detailed information and examples of how to use various tools to measure performance. We'll take this opportunity to remind you of which tools can help with DAX tuning and how they can be used. A recommended method to tune DAX is as follows:
- Review the DAX expressions in the dataset. Ideally, run the Best Practice Analyzer (BPA) to identify potential DAX improvements. The BPA does cover some of the guidance provided in the next section, but it's a good idea to check all the rules manually.
- Rank the suggestions in terms of estimated effort, from lowest to highest. Consider moving some calculations or even intermediate results to Power Query. This is usually a better...