DAX is often seen as one of the most intimidating parts of Power BI, but mastering Power BI row context is the first step to simplifying it. Whether you’re coming from Excel or SQL, understanding how DAX evaluates data one row at a time can transform how you build and debug your reports.
In this post, we’ll demystify what row context in Power BI really means, how it works, and why understanding it is essential before diving into more advanced topics like evaluation context, nested row context, or context transition.
What Is Row Context in DAX?
Row context refers to the way DAX evaluates expressions one row at a time when creating calculated columns or using iterating functions like FILTER, SUMX, or MAXX.
A Simple Example:
Let’s say you create a new calculated column in your Customer table called Full Name, combining First Name and Last Name.
Full Name = [First Name] & " " & [Last Name]
How does Power BI know which first name and last name to combine? Row context. It evaluates this formula row-by-row, so it knows to grab the corresponding values for that row only.
Row Context in Calculated Columns: Why Relationships Don’t Automatically Work
Now things get interesting.
Suppose you create another column in the Customer table to show the most recent order date from the related Internet Sales table:
Last Order Date = MAX('Internet Sales'[Order Date])
You might expect this to return the last order date for each customer. But instead, it returns the same date for every row. Why?
Because although there’s an active relationship between the tables, row context alone does not automatically trigger filter propagation. In other words, relationships aren’t “activated” in calculated columns unless you explicitly reference related rows.
Activating Relationships with RELATEDTABLE

To fix this, you can use the RELATEDTABLE function, which retrieves the rows from the related table for the current row’s context:
Last Order Date = MAXX(RELATEDTABLE('Internet Sales'), 'Internet Sales'[Order Date])
Now you’re telling Power BI to get only the sales rows related to each customer, and then find the latest order date from that filtered set.
Using RELATED and RELATEDTABLE: A Quick Guide
- Use
RELATEDwhen you’re on the many side of a relationship and need to bring in a value from the one side. - Use
RELATEDTABLEwhen you’re on the one side and need to bring in rows from the many side.
Both functions help activate relationships in row context scenarios where Power BI wouldn’t otherwise filter related tables.
Row Context in FILTER and X Functions
Row context isn’t just for calculated columns. It also appears in many DAX functions, especially iterators like:
FILTERSUMXMAXXAVERAGEXCONCATENATEX, etc.
Example: Filtering Large Weekday Sales
Let’s say you want to create a calculated table showing all sales greater than $2,000 that happened on weekdays. You write:
Large Weekday Sales =
FILTER (
'Internet Sales',
'Internet Sales'[Sales Amount] > 2000 &&
RELATED('Date'[Day Number of Week]) IN {2, 3, 4, 5, 6}
)
Without RELATED, this wouldn’t work. The row context created by FILTER disables the active relationship, so referencing the Date table directly would fail unless you re-enable the relationship with RELATED.
Why Understanding Row Context Matters
Failing to understand row context is often why DAX doesn’t behave as expected. Here’s what you gain by learning it:
- Avoid incorrect results in calculated columns and measures.
- Use relationships properly inside formulas.
- Write more efficient, readable DAX.
- Diagnose and debug complex scenarios faster.
Whether you’re building simple columns or advanced measures, row context is a foundational DAX concept you must master.
Learn More and Go Deeper
This video is part of a series designed to help you move from beginner to advanced DAX step-by-step. If you want to learn more, including topics like evaluation context and context transition, stay tuned for future videos in this series.
For structured, hands-on learning, check out the Power BI Training Courses at Data Bear. You’ll find full DAX courses, visual storytelling techniques, and guidance on mastering the Power BI ecosystem.
Final Thoughts
Mastering DAX starts with mastering row context. Once you understand how it shapes calculations, you’ll unlock a much deeper understanding of how Power BI thinks and that’s when your reports really come to life.
If this helped simplify DAX for you, don’t forget to share this post, subscribe for future updates, and dive deeper into the series.



