Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
143 | |
132 | |
110 | |
65 | |
55 |