Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I would like to use vlookup to compare ColumnA of TableA to 2 columns (B1 and B2) in TableB:
Solved! Go to Solution.
Hey @vnqt,
Give this a try:
Column =
IF (
OR (
CALCULATE (
NOT ISEMPTY ( 'TableB' ),
TREATAS ( { TableA[ColomnA] }, 'TableB'[ColumnB1] )
),
CALCULATE (
NOT ISEMPTY ( 'TableB' ),
TREATAS ( { TableA[ColomnA] }, 'TableB'[ColumnB2] )
)
),
"YES",
"NO"
)
Hi @vnqt ,
Please give us a visual example of the tables and expected outcome.
If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Nathaniel
Proud to be a Super User!
Hey @vnqt,
Give this a try:
Column =
IF (
OR (
CALCULATE (
NOT ISEMPTY ( 'TableB' ),
TREATAS ( { TableA[ColomnA] }, 'TableB'[ColumnB1] )
),
CALCULATE (
NOT ISEMPTY ( 'TableB' ),
TREATAS ( { TableA[ColomnA] }, 'TableB'[ColumnB2] )
)
),
"YES",
"NO"
)
Thank you for your help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |