Forum Discussion
Filter only Impacts one column
I have a table with three columns from my data set and a fourth column that is a measure called relationships. The Measure is as follows: >>>Relationship = DISTINCTCOUNTNOBLANK('Aggregate Officer'[Unique identifier])<<<
Team Member | Name | Job Title | Relationships |
| A | MICHAEL | VP AND CONTROLLER | 10 |
| B | MICHAEL | VP AND CONTROLLER | 5 |
| C | MICHAEL | VP AND CONTROLLER | 15 |
| A | GARY | AVP | 25 |
| B | GARY | AVP | 5 |
| C | GARY | AVP | 10 |
| B | Jim | Exec | 20 |
| C | Jim | Exec | 10 |
| B | Tony | Assistant | 30 |
| C | Tony | Assistant | 35 |
I want the ability to slice the above table by team member but I only want the filter to impact the relationship column. So for example when I slice the below table by team member “A” all the names should remain on the table. The relationship column however would be blank for Jim and Tony because Team Member "A" does not have a relationship with these individuals
| Name | Job Title | Relationships |
| MICHAEL | VP AND CONTROLLER | 10 |
| GARY | AVP | 25 |
| Jim | Exec | |
| Tony | Assistant |
- Anonymous3 years ago
Hi dw700d ,
As far as I know, if you use [Team Member] column which is related to other columns in your visual, these columns like [Job Title]/[Name] will be filtered.
Here I suggest you to create an unrelated Dim Team Member table for the slicer.
Dim Team Member = VALUES('Aggregate Officer'[Team Member])Measure:
Relationship = CALCULATE ( DISTINCTCOUNTNOBLANK ( 'Aggregate Officer'[Unique identifier] ), FILTER ( 'Aggregate Officer', 'Aggregate Officer'[Team Member] IN VALUES ( 'Dim Team Member'[Team Member] ) ) )And turn on "Show items with no data", result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- olgadResident Rockstar
- Hi, go to the name and click on the arrow down to pick show the items with no data
- AnonymousNot applicable
Hi dw700d ,
As far as I know, if you use [Team Member] column which is related to other columns in your visual, these columns like [Job Title]/[Name] will be filtered.
Here I suggest you to create an unrelated Dim Team Member table for the slicer.
Dim Team Member = VALUES('Aggregate Officer'[Team Member])Measure:
Relationship = CALCULATE ( DISTINCTCOUNTNOBLANK ( 'Aggregate Officer'[Unique identifier] ), FILTER ( 'Aggregate Officer', 'Aggregate Officer'[Team Member] IN VALUES ( 'Dim Team Member'[Team Member] ) ) )And turn on "Show items with no data", result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.