Forum Discussion

Julia1234's avatar
Julia1234
Helper I
1 year ago
Solved

Filtering DirectQuery table based on import mode table - visuals

I have DirectQuery table [VendorTransaction](Vendor,Invoice,Amt) and 2 import tables: ExcludeVendor(Vendor) and ExcludeInvoice(Invoice). I would need to exclude records in DirectQuery table [VendorT...
  • johnt75's avatar
    johnt75
    1 year ago
    ExcludeVendorExcel = 
    CALCULATE (
        SUM ( VendorTransactionMeasure[Amount] ),
        KEEPFILTERS (
            NOT VendorTransaction[Vendor] IN VALUES ( ExcludeVendor[Vendor] )
            && NOT VendorTransaction[Invoice] IN VALUES ( ExcludeInvoice[Invoice] )
        )
    )

    seems to work.