New
Microsoft Power BI Quick Start Guide
Build interactive dashboards and reports with Power BI Desktop, the Power BI service, and DAX
by Bradley Schacht, Devin Knight, Erin Ostrowsky, Mitchell Pearson
Pages
541
Published
2020
Practical DAX recipes and patterns for Power BI analysts
Master the DAX formulas and calculation patterns you need to build accurate, fast, and maintainable Power BI reports.
DAX Cookbook gives you a recipe-based path through the formulas and patterns that matter most in Power BI. Each recipe targets a specific, real-world calculation problem β from time intelligence and ranking to dynamic segmentation and error handling β so you can lift a solution directly into your own data model. Whether you are moving beyond basic measures or tackling advanced filter context, this book builds the DAX intuition analysts rely on every day.
DAX is the formula language that separates Power BI reports that answer real questions from dashboards that just look good. Knowing a handful of SUM and CALCULATE patterns will only take you so far. When a stakeholder asks for year-over-year growth by dynamic segment, or a running total that resets each fiscal quarter, you need a deeper toolkit.
DAX Cookbook by Greg Deckler gives you that toolkit in a format designed for working analysts. Each recipe starts with a clearly stated problem, presents a complete DAX solution, and then explains how and why it works. You build genuine understanding rather than copying formulas you do not trust.
The book covers the full range of practical DAX work: writing clean, reusable measures; understanding row context and filter context so bugs stop surprising you; applying time intelligence functions correctly across custom calendars; ranking and topN filtering; dynamic segmentation with calculated columns and measures; error handling and blank management; and statistical calculations that go beyond what the Power BI visual pane can produce on its own.
Recipes are organized so you can read cover to cover and build a coherent mental model, or jump directly to the pattern you need right now. Either way, each recipe stands on its own.
If you write DAX measures in Power BI and want to move from guessing to knowing, this book gives you the reference and the reasoning to get there.
Covers the foundational concepts of DAX including syntax, data types, and the difference between calculated columns and measures. You will write your first measures and understand how Power BI evaluates them.
Explains the two evaluation contexts that govern every DAX formula, and shows how context transition occurs when you move between them. You will trace through examples that make filter propagation predictable rather than mysterious.
Focuses on CALCULATE and its filter modifier functions β FILTER, ALL, ALLEXCEPT, KEEPFILTERS, and REMOVEFILTERS. You will apply these patterns to override, expand, and restrict filters for business-critical measures.
Covers the standard time intelligence functions built into DAX and shows how to apply them correctly with a marked date table. You will build MTD, QTD, YTD, and prior-period comparison measures for standard and custom fiscal calendars.
Demonstrates RANKX and related patterns for building dynamic ranked lists and topN filters that hold up under slicer changes. You will handle tie-breaking, dense ranking, and conditional ranking scenarios.
Shows how to assign records to dynamic segments and bands using both calculated columns and measure-based logic. You will build customer tier classifications, age buckets, and scenario-driven groupings.
Provides recipes for weighted averages, moving averages, standard deviation, percentile calculations, and other statistical patterns that Power BI visuals do not expose directly. You will combine these into measures ready for production reports.
Covers IFERROR, ISBLANK, DIVIDE, and related defensive patterns that prevent silent failures in reports. You will design measures that return meaningful values β or deliberate blanks β instead of propagating errors to end users.
Applies DAX to common financial reporting requirements including margin calculations, contribution analysis, and period-over-period ratios. You will adapt these recipes to different data model shapes without rewriting from scratch.
Introduces iterator functions, virtual tables, and DAX Studio basics for diagnosing slow measures. You will refactor representative formulas to reduce storage engine queries and improve report responsiveness.
You should be comfortable navigating Power BI Desktop and have written at least a few basic measures using SUM, AVERAGE, or COUNT. No prior DAX course is required, but complete beginners to Power BI may want a short orientation first.
The core DAX language and the calculation patterns covered in this book are stable and have not changed in ways that break the recipes. Some Power BI interface details may look slightly different, but every formula remains valid and applicable.
Packt typically provides companion files for their titles. Check the Packt website product page or your account downloads for any sample data or PBIX files associated with this book.
Yes, particularly if you already think in terms of formulas and calculated fields. The book explains DAX concepts clearly enough that a strong Excel user can follow along, though some Power BI interface familiarity will help.
The focus is on DAX formula authoring, which happens primarily in Power BI Desktop. Deployment to Power BI Service is outside the scope of the recipes.
Each recipe is self-contained, so you can jump to the pattern you need. Reading sequentially from the earlier chapters first will build your understanding of context and CALCULATE, which makes the later recipes easier to follow.
New
Build interactive dashboards and reports with Power BI Desktop, the Power BI service, and DAX
by Bradley Schacht, Devin Knight, Erin Ostrowsky, Mitchell Pearson
New
A practical guide to Power BI data modeling, DAX, and enterprise-grade report design
by Brett Powell, Greg Deckler, Leon Gordon
New
Reusable DAX solutions for common Power BI and Analysis Services business intelligence scenarios
by Alberto Ferrari, Marco Russo
Advanced DAX techniques and data modeling patterns for Power BI professionals
by Philip Seamark, Thomas Martens