Forum Discussion

Nukkumatti's avatar
Nukkumatti
Regular Visitor
9 years ago
Solved

Problem to get third column value using two other columns

Hello,

 

I have following issue. I have two tables with following information

Table 1   
PanelIDReaderIDName 
11Reader 1 
12Reader 2 
13Reader 3 
14Reader 4 
21Reader 5 
22Reader 6 
23Reader 7 
    
Table 2   
PanelDReaderIDEventsName?
11x 
21y 
21z 
12d 
13d 

 

Now I wan't to add the Name column to the Table 2. The Panel ID is unique and the Reader name is based on the Panel ID and to the ReaderID. How can I do this?

  • hello Nukkumatti

     

    Create a calculated column with this dax:

     

    Name = LOOKUPVALUE(Table1[Name],Table1[PanelID],Table2[PanelD],Table1[ReaderID],Table2[ReaderID])

2 Replies

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    hello Nukkumatti

     

    Create a calculated column with this dax:

     

    Name = LOOKUPVALUE(Table1[Name],Table1[PanelID],Table2[PanelD],Table1[ReaderID],Table2[ReaderID])