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, as shown earlier.
Tuning DAX
In Chapter 3, Learning the Tools for Performance Tuning, 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 DAX expressions in the semantic model. Ideally, use the Best Practice Analyzer (BPA) to identify potential 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 suggestion in terms of estimated effort, from lowest to highest. Consider moving some calculations or even intermediate results to Power Query. This is...