Learnr

Learn DAX

Write measures that answer business questions, and understand why they work.

Free to start. No credit card. Or browse all courses.

What's inside your DAX course

A sample path Learnr builds for DAX. Your real course adapts to your goal and level.

  1. DAX, the data model and star schemas
  2. Calculated columns vs measures
  3. Filter context and row context
  4. CALCULATE and filter functions
  5. Iterators, variables and RELATED
  6. Date tables and time intelligence

DAX, short for Data Analysis Expressions, is the formula language of Power BI, Power Pivot in Excel and Analysis Services. It looks like Excel formulas but works on tables and relationships, and its results depend on context: the filters coming from visuals and slicers, and the current row when a formula iterates. The central skills are knowing when to write a measure instead of a calculated column, mastering CALCULATE to change filter context, using iterators like SUMX, and building time intelligence on a proper date table. Learnr builds a DAX course around your own reports and experience level, in short lessons.

How to learn DAX, step by step

  1. Model the data as a star schema first. Arrange a fact table, such as sales, with dimension tables for date, product and customer, joined by one-to-many relationships. Many DAX problems are really model problems, and a clean star schema keeps formulas short.
  2. Learn measures before calculated columns. Write a measure like Total Sales as SUM of the amount column and drop it into a matrix sliced by year and product. Notice that it recalculates for every cell, which is the filter context at work.
  3. Understand row context with iterators. Calculated columns and functions like SUMX evaluate an expression row by row. Write revenue as SUMX over the sales table of quantity times price, and compare it with a calculated column approach.
  4. Master CALCULATE. Use CALCULATE to compute sales for one region, sales ignoring a slicer with REMOVEFILTERS and share of total with DIVIDE. Learn context transition, where CALCULATE turns the current row into a filter inside an iterator.
  5. Build a date table and time intelligence. Create a continuous date table, mark it as the date table and relate it to your facts. Then write year-to-date, same period last year and rolling three-month measures, checking each against hand-calculated numbers.
  6. Use variables and practice daily. Write longer measures with VAR and RETURN so they are readable and each step can be tested. Short Learnr practice sessions help filter context and context transition feel intuitive rather than mysterious.

What you'll learn

  • Choose correctly between measures and calculated columns
  • Explain filter context, row context and context transition
  • Use CALCULATE with filters, ALL and REMOVEFILTERS to change context
  • Write iterator functions such as SUMX and AVERAGEX
  • Build time intelligence measures on a marked date table

How long does it take to learn DAX?

Basic measures and aggregations take 1 to 2 weeks at a few hours a week. Real confidence with CALCULATE, context transition and time intelligence usually takes 2 to 3 months of building reports, since evaluation context takes time to internalize.

What you need before you start

Comfort with Excel formulas and basic Power BI, including loading data and building visuals. Knowing what tables, relationships and star schemas are will make DAX far easier to reason about.

Common mistakes to avoid

  • Creating calculated columns for things that should be measures, which bloats the model and gives totals that ignore slicers and filters.
  • Using the slash operator for ratios instead of DIVIDE, so divide-by-zero cases produce errors rather than a blank or alternate result.
  • Writing time intelligence without a proper continuous date table, which makes functions like year-to-date return wrong or empty results.

How Learnr builds your course

Type your topic

Tell Learnr you want to learn DAX, or get as specific as you like.

Get a personalized course

Learnr instantly builds a full DAX course tailored to your goal and skill level.

Learn and level up

Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.

DAX questions, answered

What is the difference between a measure and a calculated column?

A calculated column is computed once per row when data refreshes and stored in the model. A measure is computed at query time for whatever filters a visual applies, so it suits totals, ratios and other aggregations.

Is DAX the same as Excel formulas?

Some function names overlap, such as SUM and IF, but DAX works on whole tables and relationships and depends on evaluation context. Thinking in cells, as in Excel, is the most common source of confusion.

Should I learn Power Query or DAX first?

Learn the basics of Power Query first, since clean, well-shaped tables make DAX simpler. Then learn DAX for calculations that must respond to filters in your reports.

Explore more courses

More data and ai courses

See all data and ai courses

Ready to learn DAX?

Start your free, personalized DAX course in seconds. It will be typed in and ready when you get there.

Start learning DAX

Free to start. No credit card.