Forum Discussion
Julia1234
1 year agoHelper I
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...
- 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.
Julia1234
1 year agoHelper I
Thank you johnt75 , I tried this logic on visuals with different granularity and, unfortunatelly, this filter returned different result for Amount.
johnt75
1 year agoSuper User
ExcludeVendorExcel =
CALCULATE (
SUM ( VendorTransactionMeasure[Amount] ),
KEEPFILTERS (
NOT VendorTransaction[Vendor] IN VALUES ( ExcludeVendor[Vendor] )
&& NOT VendorTransaction[Invoice] IN VALUES ( ExcludeInvoice[Invoice] )
)
)
seems to work.
- Abhilash_P1 year agoSuper User
Thanks johnt75
This solution is working.