The problem is you are looking for objects in a particular storey OR lamps that could be in any storey and they are all in a particular layer.
Try putting the element criteria in brackets so it finds object or lamps in a particular storey and a particular layer.
The brackets can be very important when using "OR".
This will mean you will need separate schedules for each storey.
If you remove the storey from the criteria and add it as a field, then you can have just one schedule and sort the results by storey.
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11