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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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