A pattern is a general, reusable solution to a frequent or common challenge.
This book is the second edition of the most comprehensive collection of ready-to-use solutions in DAX, that you can use in Microsoft Power BI, Analysis Services Tabular, and Power Pivot for Excel.

In this new edition we made several choices:

  • We greatly increased the share of the book dedicated to time intelligence calculations. Time intelligence is by far the most widely studied topic. Therefore, it made sense to increase the number of time-related calculations and patterns.
  • Similarly, the New and returning customers pattern was an absolute hit. We gave that pattern a bigger share of the book as well, increasing the number of formulas and models to compute new and returning customers.
  • We increased the number of patterns, adding several that – in our experience – are likely to be useful to our readers.
  • We decided to cut out a few patterns. For example, the chapter about statistical calculations was useful back in 2015, because of the lack of statistical functions in DAX. Since then, DAX introduced many new functions to compute the formulas that were explained in that chapter. There is no need for that content in 2020.
  • We no longer provide code snippets. In the previous book, most of the code was shown including placeholders for the columns that readers were likely to change. We no longer do that. We show code that works, because you often have to adapt the data model and other details in the formula. We felt this would make the code more readable and easier to use and to adapt to your model.
  • We optimized every single formula. All the code you see in these patterns has been thoroughly reviewed for performance. This is not to say that these patterns are the very best. They are the best we could come up with. If you can make the code better and faster, let us know! The comment sections on the website are the right place to provide your feedback.
  • We created a Power BI and an Excel version of each sample file. In the book, we include pictures of Power BI reports showing the results of the code, but the examples you can download are available in both formats: Power BI and Excel.
  • We improved the readability of the eBook version of DAX Patterns. This meant keeping the code formatting intact regardless of the eBook reader size.

 
The patterns included in this book are also available on www.daxpatterns.com

Book content

  1. Time-related calculations
  2. Standard time-related calculations
  3. Month-related calculations
  4. Week-related calculations
  5. Custom time-related calculations
  6. Comparing different time periods
  7. Semi-additive calculations
  8. Cumulative total
  9. Parameter table
  10. Static segmentation
  11. Dynamic segmentation
  12. ABC classification
  13. New and returning customers
  14. Related distinct count
  15. Events in progress
  16. Ranking
  17. Hierarchies
  18. Parent-child hierarchies
  19. Like-for-like comparison
  20. Transition matrix
  21. Survey
  22. Basket analysis
  23. Currency conversion
  24. Budget

Sample chapters

Download the sample chapters of the book:   DAX-Patterns-SE-preview.pdf

ISBN

978-1735365206

Reviews

See reviews on Amazon.com