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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Tob_P
Helper V
Helper V

Exclude sales based on info in another related table

Hi,

 

I'd like to exclude sales (amount) based on a related field (SellToCustomerNo). So if the SellToCustomerNo is listed in the other table, how can sales from these be excluded?

 

Thank you

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Tob_P 
If the other table is not related then you can try something like

=
CALCULATE (
    [Sales Amount],
    FILTER (
        Sales,
        NOT ( Sales[SellToCustomerNo] IN VALUES ( TableName[Customer No.] ) )
    )
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Tob_P 
If the other table is not related then you can try something like

=
CALCULATE (
    [Sales Amount],
    FILTER (
        Sales,
        NOT ( Sales[SellToCustomerNo] IN VALUES ( TableName[Customer No.] ) )
    )
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.