Skip to main content

DAX Functions in Power BI

Data Analysis Expressions (DAX) allow you to take your Power BI skills to the next level by writing custom functions.

Start Course for Free
3 Hours9 Videos26 Exercises2,670 Learners2150 XPData Analyst Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

DAX, or Data Analysis eXpressions, is a formula language used in Microsoft Power BI to create calculated columns, measures, and custom tables. Once mastered, DAX gives you powerful control over visuals and reports, allowing for better performance and more flexibility. This course covers the core concepts such as row query and filter context, with exercises focusing on filtering, counting, ranking, and iterating functions.

  1. 1

    Setting up Data Models with DAX


    In this chapter, you'll write custom functions to create new tables and calculated columns.

    Play Chapter Now
    DAX for creating tables and columns
    50 xp
    Row vs. query vs. filter context
    100 xp
    DAX for calculated tables and columns
    50 xp
    Creating a date table
    100 xp
    Calculated column for costs
    100 xp
    Data cleaning with DAX
    100 xp
    Connecting data from different tables
    100 xp
  2. 2

    DAX and Measures


    In this chapter, you'll write custom functions to create calculated measures. You'll also get introduced to variables to make writing DAX functions more efficient.

    Play Chapter Now
  3. 3

    Filtering and Counting with DAX

    Expand your DAX power with some commonly used DAX measures. This chapter focuses on filtering and counting functions.

    Play Chapter Now
  4. 4

    Iterating Functions

    This chapter covers the core concept of another powerful set of DAX functions, the so called iterating functions. You will explore iterations with exercises focusing on ranking and iterating your data.

    Play Chapter Now

In the following tracks

Data Analyst


barousse1Luke Barousseserkanatalay-25082aed-df37-403e-99bf-9d042b4a0204Serkan Atalay
Maarten Van den Broeck Headshot

Maarten Van den Broeck

Content Developer at DataCamp

Maarten is an aquatic ecologist and teacher by training and a data scientist by profession. After his career as a Ph.D. researcher at KU Leuven, he wished that he had discovered DataCamp sooner. He loves to combine education and data science to develop DataCamp courses. In his spare time, he runs a symphonic orchestra.
See More
Carl Rosseel Headshot

Carl Rosseel

Curriculum Manager at DataCamp

Carl, a Tableau certified data analyst, is a Curriculum Manager at DataCamp, where he focuses on democratizing data skills through Business Intelligence tools. He holds a double master's degree in Business Engineering and worked in various analyst roles at an e-commerce company before joining DataCamp. He likes to use data to make the complex simple and tell data stories. Outside work, you can often find him enjoying a game of soccer, both on and off the pitch.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA