Forum Discussion
Exclude Slicer Selection
- 4 years ago
Ok, I have managed to test this.
Create a measure for to exclude each slicer selection. In this example:
Exclude Channel = IF ( ISFILTERED ( 'Exc Channel'[Channel] ), COUNTROWS ( EXCEPT ( VALUES ( FactTable[Channel] ), VALUES ( 'Exc Channel'[Channel] ) ) ), 1 )Exclude Item = IF ( ISFILTERED ( 'Exc Item'[Item] ), COUNTROWS ( EXCEPT ( VALUES ( FactTable[Item] ), VALUES ( 'Exc Item'[Item] ) ) ), 1 )Exclude REF = IF ( ISFILTERED ( 'Exc REF'[REF] ), COUNTROWS ( EXCEPT ( VALUES ( FactTable[REF] ), VALUES ( 'Exc REF'[REF] ) ) ), 1 )Add these measures to the filters for the visual in the filter pane and set the value to greater or equal to 1:
to get:
Hi PaulDBrown Thank you so much for the reply.
I think it works with single fact table-In my case I've multiple fact tables.
Any Idea/hint for multiple fact tables?
You can create the measures referencing the dimension tables instead of the fact table and use the dimension table fields in the visuals
- Anonymous4 years agoNot applicable
PaulDBrown Thanks-but when I tried with dimension table the logic was not working
- PaulDBrown4 years agoCommunity Champion
Using my previous example, these measures work with dimension tables:
The model
Exclude Dim Channel = IF ( ISFILTERED ( 'Exc Channel'[Channel] ), COUNTROWS ( EXCEPT ( VALUES ( 'Dim Channel'[dChannel] ), VALUES ( 'Exc Channel'[Channel] ) ) ), 1 )Exclude Dim Item = IF ( ISFILTERED ( 'Exc Item'[Item] ), COUNTROWS ( EXCEPT ( VALUES ( 'Dim Item'[dItem] ), VALUES ( 'Exc Item'[Item] ) ) ), 1 )Exclude Dim REF = IF ( ISFILTERED ( 'Exc REF'[REF] ), COUNTROWS ( EXCEPT ( VALUES ( 'Dim REF'[dREF] ), VALUES ( 'Exc REF'[REF] ) ) ), 1 )The visual is created with the fields from the dimension tables
- Anonymous4 years agoNot applicable
Hi PaulDBrown Thanks for your support.Could you pls tell me how you derived those exclude tables - from fact table/dimension table?