Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
User | Count |
---|---|
123 | |
69 | |
67 | |
58 | |
52 |
User | Count |
---|---|
183 | |
92 | |
67 | |
62 | |
53 |