Hi @derrick.dk, here is a similar implementation… It looks like the author of this post has gone on to create a multi-layer filter, but he doesn’t include documentation on that yet last I checked. However, maybe this will at least point you in the right direction.
UPDATE: Also found this in the comments, which IS “multi-dimensional”: