I came across a bug in my setup of making an RG with a datasource “grouping” based on a field (“Location”) on my data type (“Item”)… where I want to display (in a nested RG) all the items that belong in each grouped Location.
I see the question a lot about how to get those results, but of course the answer is that you nest a second RG in the Grouping RG’s cell, where you search/filter for the datatype, with constraint: field = parent cell grouping's (field you grouped by). I’m using a selected list of Items in a custom state, so I’m using the “filtered:” operator on that working custom state list of all the Items being grouped.
Main RG
Nested RG (Items per Grouping)
And that typically works, however in my use case, I often have some items where the field being grouped by is empty. The grouping data sourced RG does yield this empty group correctly.. but the nested RG always pull 0 srecords for that search/filter constraint.
In this example, I’m pulling in 23 records with location = empty, yet 0 match the filter
Note, the text “–No Location-” is not a record, it’s literally the (empty) location’s Name field,just with a conditional to display that text there when
Parent Group's Grouping's Location is empty
It might be a bug, or maybe an inherent restriction of searches based on grouping’s returned field…. or maybe there’s some nuanced but obviously wrong config I did, but I don’t think so. So I’m here to share what worked. And bonus, it’s NOT creating a dummy group with duplicate formatting outside the RG to handle a separate case.
Furthermore, using “ignore empty constraints” on the nested RG source is not correct, because it will pull ALL results in for the case of the empty group (not actually just the records where the field is empty).
Note the 65 total record in this form being grouped into their respective sections, yet despite the populated ones appearing in their appropriate groups above, the empty one now receives all 65. (and yes, all 65 appear in my displayed item titles below the image, when in fact there are only 23 items with empty locations that should appear in this group)
SO FOR THE SOLUTION!
Luckily it’s a very quick fix. Use the “advanced:” filter as such.
It seems like the exact same condition as the non-advanced filter constraint, but nope. Voila, I get my correct 23 results to display in the empty group with the simple switch. And the data in the other groups remains correct.
If you are doing a “Search for” on your nested RG data source (rather than my custom state list with :filtered), then you won’t have access to the “Advanced” filter. I don’t know if this problem even arises in that case. But if it idoes, perhaps you can append the :filtered operator at the end of a proper “ Search for X” expression in the RG data source.




