March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I'm new to Power BI and trying to... Make a V-Lookup of sorts. How can I create a column that looks to see if a value on table1 appears in a table2 in a different column? I just would like it to return "Yes" or "No" depending if the value exits.
Table1
ID | ID Exists in Table2? |
12345 | |
23456 |
Table2
Exchange ID | ID |
11111 | 12345 |
Any help would be greatly appreciated
Solved! Go to Solution.
@jcawley , A new column in Table 1,
In case tables are related 1-M from Table1 to table 2
if(isblank(realted(Table2[ID])),"No", "Yes")
Or
if(isblank(countx(filter(Table2, Table2[ID] =Table1[ID]),Table2[ID])),"No", "Yes")
@jcawley ,
Below is calcualted column is based on one to many relationship based between Tabel1(One) and Tabel 2(Many).
Please accepet it as a solution if it fits your requirment.
@jcawley , A new column in Table 1,
In case tables are related 1-M from Table1 to table 2
if(isblank(realted(Table2[ID])),"No", "Yes")
Or
if(isblank(countx(filter(Table2, Table2[ID] =Table1[ID]),Table2[ID])),"No", "Yes")
Thank you! The second one worked for me.
Hi @jcawley
LOOKUPVALUE() https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax
or calculate countrows. in your case it will be like
Column =
var _isValue = CALCULATE(COUNTROWS(Table2), FILTER(Table2, Table2[ID] = EARLIER(Table1[ID])) )
RETURN
IF(_isValue > 0, "yes", "no")
Thank you! This solution worked for us as well!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |