Forum Discussion

shubh_kush's avatar
shubh_kush
Helper I
5 years ago
Solved

Referencing/Lookup column value from different column

Hi Everyone,   I am trying to figure out a solution and need expert advise on how to achieve it.  I have two tables Applications and Interface. Application has a column "Fitness_Score" and Interfa...
  • v-kelly-msft's avatar
    v-kelly-msft
    5 years ago

    Hi shubh_kush ,

     

    Create a measure as below:

    Measure = 
    IF(MAX('Interface'[Level_2]) in FILTERS('Fitness_Score'[Level_1]),
    CALCULATE(MAX('Fitness_Score'[Fitness_Score]),FILTER('Fitness_Score','Fitness_Score'[Level_1]=MAX('Interface'[Level_2]))),
    IF(NOT(MAX('Interface'[Level_2]) in FILTERS('Fitness_Score'[Level_1])),IF(MAX('Interface'[ID_Level_1]) in FILTERS('Application'[ID_Key]),CALCULATE(MAX('Application'[Fitness_Score]),FILTER('Application','Application'[ID_Key]=MAX('Interface'[ID_Level_1]))))))

    And you will see:

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!