Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I'm looking for a solution in DAX for a calculated column.
My problem is that I need to compare two columns of two tables with each other. Both tables have different inputs and only a few rows match each other.
For example: I have two tables A and B. Both have entries with dates and numbers.
I need to check the entries of both and print an output in the calculated column.
Table A:
| Date | Number |
| 12.01.2022 | 1111 |
| 12.01.2022 | 3333 |
| 23.02.2022 | 3333 |
| 23.02.2022 | 1111 |
Table B:
| Date | Number | Calculated column (Output) |
| 23.02.2022 | 1111 | Found in table A |
| 28.01.2022 | 1111 | Not found in table A |
| 23.02.2022 | 2222 | Not found in table A |
| 12.01.2022 | 1111 | Found in table A |
How would I do this?
Thank you! Sincerely
Solved! Go to Solution.
Hi @ColinCH ,
you can try this
Column =
IF(
ISBLANK(
LOOKUPVALUE('Table A'[Number],
'Table A'[Date],'Table B'[Date],
'Table A'[Number],'Table B'[Number]
)
),
"Not found in table A",
"Found in table A"
)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ColinCH ,
you can try this
Column =
IF(
ISBLANK(
LOOKUPVALUE('Table A'[Number],
'Table A'[Date],'Table B'[Date],
'Table A'[Number],'Table B'[Number]
)
),
"Not found in table A",
"Found in table A"
)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!