Forum Discussion
tgjones43
Helper IV
6 years agoFilter to keep rows where two specific values are both present
Hello all
I have the following data in a table visual and would like to create a measure I can use to filter the table so that only Site 4 is displayed i.e. records where there is a Method value for both A and B, but not A only, and not any other combination of Method values. Is this possible?
Thank you.
| Site | Method |
| 1 | A |
| 2 | A |
| 2 | C |
| 3 | A |
| 4 | A |
| 4 | B |
| 5 | A |
| 5 | B |
| 5 | C |
6 Replies
- az38
Community Champion
try to use a measure to filter by TRUE like
Measure = IF( CALCULATE(DISTINCTCOUNT(Table[Method]), ALLEXCEPT(Table, Table[Site]), Table[Method] IN {"A", "B"}) = 2, TRUE(), FALSE() )