PowerBI - Match and Get the Value from another table (Vlookup)

MMS*_*MMS 4 powerbi

I have 2 tables connected to each other through col A. I want to match the column C with Col A and get the value of Col B.

For Example,

Table 1

ColA    ColB     Colc
a        a1       b
a        b1       c
c        c1       a
Run Code Online (Sandbox Code Playgroud)

Table2

ColA ColB
a     a1
b     b1
c     c1
Run Code Online (Sandbox Code Playgroud)

Now, I have already created relationships between Table2 and Table1 for my other calculations connecting both the tables with the colA.

现在,我尝试将Table1中的ColC与Table2中的ColA匹配,并从Table2中返回ColB的值作为MatchedOutput。

预期输出表1

 ColA    ColB     Colc     MatchedOutput
    a        a1       b     b1
    a        b1       c     c1
    c        c1       a     a1
Run Code Online (Sandbox Code Playgroud)

Ale*_*son 6

DAX函数为此LOOKUPVALUE

MatchedOutput = LOOKUPVALUE(Table2[ColB],Table2[ColA],Table1[ColC])
Run Code Online (Sandbox Code Playgroud)

这将在Table2[ColB]where Table2[ColA]匹配中查找值Table1[ColC]