Can I negate count-selected() that I feed into the repeat group?

I have a checkbox lookup question that I will feed into the loop of a repeat group. In the past, I usually use the product of count-selected() function as the repeat count. However this time, I need the opposite. I need to count those items that were NOT selected in the lookup table to use in the repeat group. Has any of you done something like this?

Thanks a lot!


Haven’t tried this, but i imagine that if you feel the “Count()” function the same path to your lookup would work in combination with count-selected. counting a property that exists across the board with the same filter that you have for your lookup should yield the number of items in your checkbox questions.

so it’s then just a matter of “Count()” - “Count-selected()”

if you end up trying that, please do let us know if it works