Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

need help in lookupvalue

I trying to figure out how the lookup value work in power bi...can anyone help...

I have 2 tables.

Table 1
NameTeam
JohnA
AppleB
JaneC

 

Table 2
TeamTarget
A1000
B4000
C6000

 

how should i write the formula so that the following can be achieved?

Final Results
Table 1
NameTeamTarget
JohnA1000
AppleB4000
JaneC6000

Thank you.

  • Hi,

    Assuming there will only be unique entries in the Team column of Table 1, build a relations from the Team column of Table 2 to the Team column of Table 1.  To your Table visual, drag Team and Name column from Table 1 and write this measure

    =SUM('Table 1'[Target])

    Drag this measure to the visual.

3 Replies

  • Hi,

    Assuming there will only be unique entries in the Team column of Table 1, build a relations from the Team column of Table 2 to the Team column of Table 1.  To your Table visual, drag Team and Name column from Table 1 and write this measure

    =SUM('Table 1'[Target])

    Drag this measure to the visual.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        You are welcome.  If my previous reply helped, please mark it as Answer.  If the relationship is set up properly, the RELATED() function should work.