Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
94 | |
89 | |
32 | |
28 |