Cover of DAX Formulas for PowerPivot by Rob Collie, featuring abstract data and spreadsheet grid imagery on a clean background

Pages

256

Published

2012

DAX Formulas for PowerPivot

A Simple Guide to the Excel Revolution

Learn to write DAX formulas that turn raw data into business insight, without needing a developer background.

DAX Formulas for PowerPivot bridges the gap between Excel skills and serious data modeling. Rob Collie, a former Microsoft Excel team member, teaches the DAX formula language in plain terms that business analysts can actually use. You will learn how measures, calculated columns, and filter context work together so you can build reports that answer real business questions — all inside Excel or Power BI.

About this book

Most Excel users hit a ceiling. Pivot tables are fast, but the moment a stakeholder asks for a year-over-year comparison, a rolling 12-month total, or a ratio that ignores the current filter, a normal pivot table stops cooperating. DAX was built to solve exactly that class of problem, and this book teaches you how to use it.

Rob Collie spent years on the Microsoft Excel team before becoming one of the most widely read voices on Power BI and DAX. He wrote this book for analysts, finance professionals, and business intelligence practitioners who already know Excel and want to do more with their data — not for software developers who need a language reference manual.

The central insight of the book is filter context: understanding when a DAX formula evaluates the full table versus a sliced subset changes how you read and write every formula you ever touch. Collie builds that understanding gradually and concretely, using realistic business scenarios rather than contrived toy examples.

By the time you finish, you will be able to write measures that work correctly across any slicer combination, build time intelligence calculations from scratch, and reason about why a formula returns the wrong number — which is the skill that separates DAX practitioners from people who copy formulas from Stack Overflow and hope for the best.

  • Understand row context and filter context so formulas behave the way you expect
  • Write measures and calculated columns with confidence, knowing the difference between them
  • Build time intelligence calculations — month-to-date, year-over-year, rolling averages — without memorizing magic incantations
  • Use CALCULATE and FILTER to reshape context and answer questions a regular pivot table cannot
  • Model relationships between tables so your data loads cleanly and queries run fast

The book was written against PowerPivot for Excel and the early Power BI data model, but the DAX concepts are the same ones used in modern Power BI Desktop today. The formula language has grown since 2012, but the foundational ideas Collie explains here remain the fastest path to genuine DAX fluency.

🎯 What you'll learn

  • Explain the difference between row context and filter context and use that knowledge to debug broken formulas
  • Write measures that aggregate data correctly regardless of which slicers are active
  • Build year-over-year, month-to-date, and rolling-average calculations using DAX time intelligence functions
  • Use CALCULATE to override, extend, or remove filter context on demand
  • Model multi-table data with relationships so lookups and aggregations work without VLOOKUP workarounds
  • Distinguish when to use a calculated column versus a measure and avoid the performance traps that come from choosing wrong
  • Read an unfamiliar DAX formula and reason step-by-step about what it will return

👤 Who is this book for?

  • Excel analysts who want to graduate from pivot tables to proper data modeling
  • Finance and operations professionals building self-service reports in Power BI or PowerPivot
  • Business intelligence developers who are new to DAX and want a readable starting point
  • Power BI beginners who find the official documentation too terse or too technical
  • Managers and consultants who need to own their own data models rather than wait for IT

Table of contents

  1. 01

    Why DAX Exists

    Understand the limitations of traditional Excel pivot tables and why Microsoft created the DAX formula language. You will see the class of business questions that DAX was specifically designed to answer.

  2. 02

    The Data Model and Relationships

    Learn how PowerPivot and Power BI store data in columnar tables connected by relationships. You will load your first multi-table model and see why the relationship diagram matters before you write a single formula.

  3. 03

    Your First Measures

    Write basic aggregation measures — SUM, COUNT, AVERAGE — and place them in a pivot table. You will learn why a measure is different from a cell formula and why that difference is a feature, not a limitation.

  4. 04

    Row Context and Calculated Columns

    Discover how DAX evaluates formulas row by row when building a calculated column. You will write columns that derive values from other columns in the same table and see where row context ends.

  5. 05

    Filter Context

    Learn the most important concept in DAX: how the pivot table applies filters before your measure evaluates. You will trace exactly which rows survive into each formula evaluation and use that mental model to predict results.

  6. 06

    CALCULATE and Context Modification

    Master CALCULATE, the function that lets you override the filter context from outside a measure. You will rewrite context to produce ratio-to-total, segment comparisons, and other calculations that standard aggregations cannot deliver.

  7. 07

    FILTER, ALL, and Related Functions

    Use FILTER to produce virtual tables and ALL to remove filters selectively. You will combine these functions with CALCULATE to answer questions that require comparing a subset against a grand total.

  8. 08

    Time Intelligence

    Build date-based calculations including year-to-date, same-period-last-year, and rolling averages using DAX's built-in time intelligence functions. You will set up a proper date table and learn why every time intelligence formula depends on it.

  9. 09

    Practical Patterns and Troubleshooting

    Apply the concepts from every earlier chapter to realistic business reporting scenarios. You will also work through a systematic approach to diagnosing why a measure returns a blank or a wrong number.

Frequently asked questions

Do I need programming experience to read this book?

No. The book is written for Excel power users and business analysts, not developers. If you are comfortable writing VLOOKUP or SUMIFS formulas, you have enough background to follow along.

Is this book still relevant for modern Power BI Desktop?

Yes. The book was published in 2012 and targets PowerPivot for Excel, but DAX's core concepts — filter context, CALCULATE, measures, relationships — are identical in modern Power BI Desktop. Some newer functions introduced after 2012 are not covered, but the foundation the book teaches transfers directly.

Does the book include sample files or practice data?

The book references example data sets throughout. Check the publisher's site for any companion files associated with your edition.

Is this book for complete beginners or people who already know some DAX?

It is aimed squarely at beginners. Readers who already understand filter context and use CALCULATE regularly will likely find the pace too slow, and would be better served by a more advanced reference.

How long is the book?

The print edition is 256 pages. The writing is direct and example-driven, so the page count reflects practical content rather than padded explanation.

Does the book cover Power Query or M?

No. The focus is entirely on DAX formulas and the data model. Power Query and the M language are separate topics not addressed here.

You might also like

📬 Weekly Newsletter

Stay ahead of the curve

Get the best programming tutorials, data analytics tips, and tool reviews delivered to your inbox every week.

No spam. Unsubscribe anytime.