Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Iceberg12
Frequent Visitor

Need help to check the missing data in 02 different Columns.

Hello everyone, 

I need your help on the following query: 

I have table A:

Number
1
2
3
4
5


and table B 

1
2


and C:

4
5


I would like to have a new column in Table A like this

Number

Found on B&C

1

True

2True
3False
4True
5True


I am trying to use Contain, but it only works with 02 Columns, maybe I should have another approach.
Appreciate your help on this.
Thanks,



1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hello! I have entered the following for A:

audreygerred_0-1707326985550.png

The following for B:

audreygerred_1-1707327010729.png

The following for C:

audreygerred_2-1707327033333.png

If you want to show whether a value from A is found in B OR in C, use below:

found_in_b_or_c = IF(
    COUNTROWS(
        INTERSECT(
            VALUES('Table A'[Column1]),
            UNION(VALUES('Table B'[Column1]), VALUES('Table C'[Column1]))
        )
    ) > 0,
    TRUE,
    FALSE
)
 
If you want to show if a value from A is found in B AND C, use the below:
found_in_b_and_c =
IF(
    COUNTROWS(
        INTERSECT(
            VALUES('Table A'[Column1]),
            INTERSECT(VALUES('Table B'[Column1]), VALUES('Table C'[Column1]))
        )
    ) = COUNTROWS(VALUES('Table A'[Column1])),
    TRUE,
    FALSE
)
 
Here are the results:
audreygerred_3-1707327123990.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Iceberg12
Frequent Visitor

Thank you for your suggest solution, but does that also work if Column B doesn't have the same row as Column C?

You're welcome. Yes, one of the DAX I provided will let you know if the same value is in b or c and the other is only if it's b and c.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





audreygerred
Super User
Super User

Hello! I have entered the following for A:

audreygerred_0-1707326985550.png

The following for B:

audreygerred_1-1707327010729.png

The following for C:

audreygerred_2-1707327033333.png

If you want to show whether a value from A is found in B OR in C, use below:

found_in_b_or_c = IF(
    COUNTROWS(
        INTERSECT(
            VALUES('Table A'[Column1]),
            UNION(VALUES('Table B'[Column1]), VALUES('Table C'[Column1]))
        )
    ) > 0,
    TRUE,
    FALSE
)
 
If you want to show if a value from A is found in B AND C, use the below:
found_in_b_and_c =
IF(
    COUNTROWS(
        INTERSECT(
            VALUES('Table A'[Column1]),
            INTERSECT(VALUES('Table B'[Column1]), VALUES('Table C'[Column1]))
        )
    ) = COUNTROWS(VALUES('Table A'[Column1])),
    TRUE,
    FALSE
)
 
Here are the results:
audreygerred_3-1707327123990.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.