Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
107 | |
106 | |
91 | |
67 |
User | Count |
---|---|
162 | |
133 | |
132 | |
93 | |
91 |