Sounds like you need a conditional formula?? I don't know any way to do that in version 21 in the interactive schedules other than the filters.
However if you upgrade to 22, they do have conditional IF's in expressions, which, I believe would accomplish what you want. I would just wait until 22 is released in your area
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27