Filter from a filter

Is their a way to create a hierarchy of filters?
For example I have a list of student ids and classes.
I want the user to first filter the ids and only then to choose a class.
However, I want that the classes options that are presented to the user would be only classes that are relevant for the selected ids (meaning the list of classes will not contain a class that doesn’t have one of the selected student ids)

Thanks in advance,

Hhi @yael ,
please check casdading filters.


I looked at this page but it didn’t help me.
Is it possible to do what I want?

Thanks in advance,

Yes it is. With cascading filter.
You have to create a filter for ID and Class.

in the Class filter you need to “show relevant values only”