Forum Discussion
LWOLF
4 years agoRegular Visitor
SELECTED VALUES IN TABLE
Hi all, Could you please advice how to fix this issue? I need to exclude customers that bought at least one of the selected products. My current solution works if you select only one product, ho...
- 4 years ago
thanks amitchandak . I actually managed to solve it after many hours of thinking! 😄
Products_exclusion = VAR _table = CALCULATETABLE(SUMMARIZE('main','main'[Customer ID]), FILTER(ALL('main'),'main'[Product] IN FILTERS('slicer disconnected'[Product]))) RETURN IF( ISFILTERED( 'slicer disconnected'[Product]), IF( MAX('Customer concat'[Customer ID]) IN _table, 0, 1 ), 1)
amitchandak
Super User
4 years agoLWOLF , Make sure independent table for the product is used in slicer, I changed the name to product
try measure
Customer concat =
var _cust = except(all(main[Customer ID]) , SUMMARIZE(filter('main',main[Product] in VALUES(Product[Product])), main[Customer ID]))
return
countrows(filter(main, main[Customer ID] in _cust ))
plot this with customer
- LWOLF4 years agoRegular Visitor
thanks amitchandak . I actually managed to solve it after many hours of thinking! 😄
Products_exclusion = VAR _table = CALCULATETABLE(SUMMARIZE('main','main'[Customer ID]), FILTER(ALL('main'),'main'[Product] IN FILTERS('slicer disconnected'[Product]))) RETURN IF( ISFILTERED( 'slicer disconnected'[Product]), IF( MAX('Customer concat'[Customer ID]) IN _table, 0, 1 ), 1)- amitchandak4 years ago
Super User
LWOLF , Kudos to You