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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
HJK
Frequent Visitor

I want to exclude a specific value after CROSSJOIN two tables.

Hi

 

I want to exclude a specific value after CROSSJOIN two tables.

See example below.

How can I do it?

 

1. Table A

Type
A
B
C

 

2. Table B

Number
1
2
3

 

3. Cross join

TypeNumber
A1
A2
A3
B1
B2
B3
C1
C2
C3

 

4. I want to exclude "3" from type "A" and 

TypeNumber
A1
A2
B1
B2
B3
C1
C2
C3
1 ACCEPTED SOLUTION

Hi,

Thank you for your message, and please try something like below.

|| function might help.

Or (||) – DAX Guide

 

New table =
FILTER (
    GENERATE ( 'Table A', 'Table B' ),
    NOT ( 'Table A'[Type] = "A"
        && ( 'Table B'[Number] = 3
        || 'Table B'[Number] = 4
        || 'Table B'[Number] = 5
        || 'Table B'[Number] = 6 ) )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1669264215703.png

 

 

New table =
FILTER (
    GENERATE ( 'Table A', 'Table B' ),
    NOT ( 'Table A'[Type] = "A"
        && 'Table B'[Number] = 3 )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you.

 

How do I get rid of both 2 and 3 from type A?

 

Hi,

Thank you for your feedback, and please check the attached file down below.

 

Jihwan_Kim_0-1669267674221.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you. really helpful

sorry but i have one more question

 

The OR function can only filter two things.
How can I filter more than 3?

For example, what if i need to remove 1,2,3 out of 1, 2, 3, 4 of type A?

 

Hi,

Thank you for your message, and please try something like below.

|| function might help.

Or (||) – DAX Guide

 

New table =
FILTER (
    GENERATE ( 'Table A', 'Table B' ),
    NOT ( 'Table A'[Type] = "A"
        && ( 'Table B'[Number] = 3
        || 'Table B'[Number] = 4
        || 'Table B'[Number] = 5
        || 'Table B'[Number] = 6 ) )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.