Create Room schedule for each level - filter not working

Hello !
I want to create a dynamo script to create parts schedules for each level. At the end I would like to insert these schedules in a view sheet by level (with the floor plan).

But I’m stuck creating schedules. The filter to keep only the parts of the level doesn’t work. I have trouble to understand how it works.

Can you help me, please?