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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
siddharthj
Regular Visitor

RELATED function

Hi,

one of my table has Many to Many cardinality, and when I try to use RELATED , the option to select coloumn from that table is not there; this means that RELATED cannot work with Many to Many relations, is that a correct assumption.

Thanks,

Siddharth

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@siddharthj 

yes, related() can not understand what column is relatedin many-to-many relationships

See remarks here https://docs.microsoft.com/en-Us/dax/related-function-dax

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi  @siddharthj 

RELATED function returns a related value from another table.

For your case, it is a Many to Many cardinality, so you may try RELATEDTABLE Function to create a column as below:

MAXX(RELATEDTABLE('Table'),[Column])

or create a column as below:

CONCATENATEX(RELATEDTABLE('Table'),[Column],",")

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lili6-msft 

Thanks, these are 2 very useful DAX formulas.

Rgds,

Siddharth

az38
Community Champion
Community Champion

@siddharthj 

yes, related() can not understand what column is relatedin many-to-many relationships

See remarks here https://docs.microsoft.com/en-Us/dax/related-function-dax

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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