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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ukaya19079
Regular Visitor

Related DAX Function

Hi,

I have a question about the RELATED DAX function if someone can help please.

 

I can create a new column on table X with getting the column from table Y with RELATED function. But it doesn't let me do the opposite ( creating a new column on table Y with getting the column table X).  There is one to many relationship between the table X and Y  and also I tried both cross filter direction but didn't le me. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ukaya19079 ,

 

When there is a one-to-many relationship between two tables, we usually use the RRELATED() function to get unique records from one side. You can create calculated columns in the fact table to verify it.

Column = RELATED(FactTable[Key])

RELATED

 

Similarly, if we are at one side (DimTable), there will be multiple records in the fact table table corresponding to one of the rows of DimTable, and we use the RELATEDTABLE () function to get the corresponding record in the fact table (a table).

RELATEDTABLE

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your desired outcome of the second (creating a new column on table Y with getting the column table X) looks like, but please try using RELATEDTABLE DAX function.

 

RELATEDTABLE function (DAX) - DAX | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Thank you Jihwan_Kim. 

I just watched a tutarial about it. I don't know why but, if there is a 1 to many relation between 2 tables, RELATED DAX will work only on the table where there is many relationships, it won't work on the table where there is only  1 relation. 

 

Thanks a lot for responding.

Anonymous
Not applicable

Hi @ukaya19079 ,

 

When there is a one-to-many relationship between two tables, we usually use the RRELATED() function to get unique records from one side. You can create calculated columns in the fact table to verify it.

Column = RELATED(FactTable[Key])

RELATED

 

Similarly, if we are at one side (DimTable), there will be multiple records in the fact table table corresponding to one of the rows of DimTable, and we use the RELATEDTABLE () function to get the corresponding record in the fact table (a table).

RELATEDTABLE

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.