Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

When can RELATED be omited?

Is there any differnce in using RELATED or not for the below case? I still cannot follow when its necesary to use it, for example:

 

VAR = SELECTCOLUMNS(  FILTER(Cust,Cust[City] = "LA")
                                          ,"CustNo"
                                         ,Cust[CustNo] )

 

Works the same as...

VAR =
SELECTCOLUMNS(

  FILTER(
              Cust
              ,RELATED(Cust[City]) = "LA"

             )
  ,"CustNo"
  ,Cust[CustNo]
)

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

 

RELATED is needed only if the following conditions hold simultaneously:

1. You've got a row context on a certain base table.

2. You want to get a value from a table that is in relation to the one you are iterating over right now (hence the row context) and the table sits on the one-side of the relationship.

 

This is really all there is to it. Please read the documentation of the function as well https://dax.guide/related 

amitchandak
Super User
Super User

@Anonymous , if you are using cust table, then there is no need to use related. You should use that to bring column from a table from one side of one to many join

refer: https://www.youtube.com/watch?v=Wu1mWxR23jU

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.