The problem occurs when you use a property that is only available to a particular element or material type as in 'Building Material which is only applicable to basic materials.
The criteria is to show all BM in any type but you than pick up all elements which would be simpler to filter out by deleting line with a '___'. I recognize that additional criteria would also remove the problem but a single filter command seems more direct and understandable.
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27