Filter entire list from multiple lists

HI!

Im having trouble filtering one entire list based on one set parameter. In the picture below I want to filter out list 8. "Kantplank is a set element and 7 is variable. THe location also varies and isnt always in list 8. Doe anyone have a solution for this problem?

Thanks in advance!

You can make it easier by if you flatten your list.
Otherwise use levels.

You need to use List.AnyTrue to check that any item in the sublist matched your condition. Then you’ll be able to filter the sublists.