How to filter content by a specific taxonomy term when vocabulary allows multiple values? I have defined a vocabulary that allows multiple terms to be checked for a Content Type and I would like to create a View that could gather all the data from that Content Type but grouping the results by a specific term.
When I'm not applying any contextual filter, the result list should contain a group of data for every term in my vocabulary. Naturally, some of the items will appear in multiple groups because of the multiple terms scenario.
I would like to create a contextual filter for a specific term and get as a result only one of those groups. The problem is that I'm getting not only the group I expect but other groups in which some of the results have more than one term selected for the same vocabulary.
For example:

Content type is &quot;Dogs&quot;.
Vocabulary is &quot;Places&quot;.
Taxonomy terms for &quot;Places&quot; are: &quot;Kitchen&quot;, &quot;Living room&quot;, &quot;Garage&quot;, &quot;Outside&quot;.

&quot;Dogs&quot; has a field called &quot;Places to play with my owner&quot; which is related to &quot;Places&quot; and the user can select one or more options.
I created a view that has:

A relationship with &quot;Places&quot; vocabulary.
A contextual filter that retrieves all the &quot;Dogs&quot; that play on each of those places when there is no specific term to filter.
A field group using the &quot;Places&quot; term names.

And retrieves the following results on a URL like: /dogs/places-to-play/:

Kitchen: Dog A, Dog B.
Living Room: Dog A.
Garage: Dog C.
etc.

The contextual filter should receive a &quot;Places&quot; term name via URL like: /dogs/places-to-play/kitchen and the expected result would be:

Kitchen: Dog A, Dog B.

But in my case, the results are:

Kitchen: Dog A, Dog B.
Living Room: Dog A.

Because &quot;Dog A&quot; has options &quot;Kitchen&quot; and &quot;Living Room&quot; selected in its &quot;Places to play&quot; field.
The question is: Is there a way to avoid getting the extra groups?
Thanks in advance.
To solve the problem:

Removed the relationship with &quot;Places&quot; vocabulary and used the field &quot;Places to play&quot; to create the field groups, checking the &quot;Use rendered output for a group of rows&quot; option.
Unchecked the &quot;Display all values in the same row&quot; option for &quot;Places to play&quot; field.
Created a contextual filter for &quot;Places to play&quot; field to receive the value via URL.

As a result I now get what I was expecting.