Forum Discussion
DanielOrtiz
Dec 29, 2019Copper Contributor
I want to filter 2, 3 or more rows depending on the value of one of them...
Hi everyone,
This is probably a very basic question:
I want to be able to filter "groups" of rows based on the value of one of the columns
For example:
| Name | Studio | Unique Code | Favorite Drink | Address | Phone number |
| Donald Duck | Disney | 123 | Coke | 23 Disney Street | 210202020 |
| Goofy | Disney | 124 | Fanta | 346 Disney Place | 1291892 |
| Timon | Disney | 125 | Sprite | 234 The Lion king Road | 12893494 |
| Pumba | Disney | 126 | Coke | 12 The Lion King Road | 129049 |
| Woody | Pixar | 127 | Sprite | 33 Toy Story Avenue | 2309834 |
| RoadRunner | Warner Bross | 128 | Coke | 245 Acme Rd | 908354 |
| Coyote | Warner Bross | 129 | Fanta | 199 Acme Rd | 40981340 |
| Bugs Bunny | Warner Bross | 130 | Sprite | 345 WB Street | 134097834 |
| Minion | Pixar | 131 | Fanta | 24 DespicableMe Road | 30984 |
| Gru | Pixar | 132 | Sprite | 156 DespicableMe Road | 978350 |
I would like to be able to filter by groups, by studio, for example, if at least one of them likes Coke.
In this case, for the filtered table to look like this: All the characters from Disney studio because at least one of them like coke, and then all the characters of Warner Brothers because at least one of them likes Coke.
| Name | Studio | Unique Code | Favorite Drink | Address | Phone number |
| Donald Duck | Disney | 123 | Coke | 23 Disney Street | 210202020 |
| Goofy | Disney | 124 | Fanta | 346 Disney Place | 1291892 |
| Timon | Disney | 125 | Sprite | 234 The Lion king Road | 12893494 |
| Pumba | Disney | 125 | Coke | 12 The Lion King Road | 129049 |
| RoadRunner | Warner Bross | 127 | Coke | 245 Acme Road | 908354 |
| Coyote | Warner Bross | 128 | Fanta | 199 Acme road | 40981340 |
| Bugs Bunny | Warner Bross | 129 | Sprite | 345 WB Street | 134097834 |
The Pixar's characters are gone because no one likes Coke.
How do you do that?
Dan
You may add helper column like
=COUNTIFS([Favorite Drink],"Coke",[Studio],[@Studio])>0and filter on it.
1 Reply
- SergeiBaklanDiamond Contributor
You may add helper column like
=COUNTIFS([Favorite Drink],"Coke",[Studio],[@Studio])>0and filter on it.