How to Filter a Dropdown Menu with Another Dropdown Menu?

I have a question about DASH;
How can I filter a dropdown menu by another one?

For example, if I have a revenue breakdown dashboard in the which there are dropdown menu for product categories and another dropdown menu for products…how can I show only the relevant products in the products dropdown menu when selecting a given product categories from the other dropdown menu.

Not knowing this is the main reason I prefer to use other tools!


Seems fairly simple. Two dcc.Dropdown, with a callback reacting to the value change of the first one to populate the options of the second.

There are examples close to it in:


Thanks very much