Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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[Colum...
  • AntrikshSharma's avatar
    6 years ago

    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/