Forum Discussion

kristinak's avatar
kristinak
Frequent Visitor
9 years ago
Solved

Calculated column from two different tables

Hello,   I am new to Power BI and DAX and I am facing some difficilties. I want to add a calculated column where I need to devide values from two different tables. Relationship between tables is Ma...
  • v-caliao-msft's avatar
    9 years ago

    kristinak,

     

    Firstly, you need to get data from antoher table, and then devide values. To get data from another table, we cna use RELATED function and Lookupvalue function.
    RELATED function returns a related value from another table.
    https://msdn.microsoft.com/en-us/library/ee634202.aspx

    Lookupvalue function returns the value in result_columnName for the row that meets all criteria specified by search_columnName and search_value.
    https://msdn.microsoft.com/en-us/library/gg492170.aspx

     

    If this is not what you want, please provide us some sample data and your expected result, so that we can make further analysis.

     

    Regards,

    Charlie Liao