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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Related() issue

Hi All, 

I'm kind of new to Power BI, and I am having some issues with the related() function, as I am trying to relate a column to a different sheet but get the error "The column 'Sheetname[Column name]' either doesn't exist or doesn't have a relationship to any table available in the current context." I have made sure that there are no duplicates or blanks in both sheets. Also I noticed that the relationship cannot be changed from many to many to other relationships as I get the error "The cardinality you selected isn't valid for this relationship".

Can anyone please help me in knowing the reason behind this? would be much appreciated!

Haya

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

RELATED doesn't works because DAX is based on Expanded tables concept, where each table on the one side of the relationship expands to the related table on the many side, just like LEFT join in SQL, and RELATED only allows you to access columns of an expanded table, but table expansion doesn't happens in case of many to many relationships. so you will have to either create a bridge table, or create dimensions properly or you use something like this :

 

=
MINX ( RELATEDTABLE ( Table ), Table[ColumnName] )

 

https://www.sqlbi.com/articles/expanded-tables-in-dax/

View solution in original post

3 REPLIES 3
AntrikshSharma
Super User
Super User

RELATED doesn't works because DAX is based on Expanded tables concept, where each table on the one side of the relationship expands to the related table on the many side, just like LEFT join in SQL, and RELATED only allows you to access columns of an expanded table, but table expansion doesn't happens in case of many to many relationships. so you will have to either create a bridge table, or create dimensions properly or you use something like this :

 

=
MINX ( RELATEDTABLE ( Table ), Table[ColumnName] )

 

https://www.sqlbi.com/articles/expanded-tables-in-dax/

Anonymous
Not applicable

Thank you! This actually worked 🙂 

MattAllington
Community Champion
Community Champion

Related is not a very common function to use if you build a good data model and good DAX. There is a lot to learn. Unlike Excel, the relationships are normally modelled in the model view and most of the rest can work from there without using the related function. But of course it depends what you are trying to do. 

my article here should help you get started. https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.