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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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