Forum Discussion

edithees's avatar
edithees
New Member
4 years ago
Solved

Related Dax not working

Hi, need some help with RELATED.   1. Related isn't coming up as a formula to me. 2. But it lets me put in something like this Column=related(#"Years taught index")) and when I click ok, I get Exp...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi edithees ,

    It seems you are adding a custom column in Power Query Editor, but the RELATED function is used for DAX. You can create a measure as below using related function:

    Sales[Sales at List Price] =
            SUMX ( Sales, Sales[Quantity] * RELATED ( 'Product'[List Price] ) )

    By the way, what do you want to do with the RELATED function? Perhaps you can provide us with some sample data and calculation logic, and we will provide you with a suitable solution later. The following blog describes related usage scenarios, please check it out. We hope it will be useful to you.

    Get a field value from a related table in Power BI: DAX RELATED Function Explained

    Best Regards