# Interconnected Filters

**URL:** <https://community.plotly.com/t/interconnected-filters/75473>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [May 22, 2023, 11:07pm UTC](https://community.plotly.com/t/interconnected-filters/75473 "2023-05-22T23:07:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsathwikm](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@vsathwikm](https://community.plotly.com/u/vsathwikm)\
**Post date:** [May 22, 2023, 11:07pm UTC](https://community.plotly.com/t/interconnected-filters/75473/1 "2023-05-22T23:07:08Z")

</div>

Hello,

I am trying to create interlinked dynamically updated filters/dropdowns. I have seen an example of dynamically updating options of a filter based on the previous filter option, but in my scenario I am attempting to update either of the filters depending on the other. As an example,

Filter 1: options - New York, Montreal, San Francisco  
Filter 2: options - New York: [Harlem,Chinatown,Flushing], Montreal:[Old Montreal, Downtown Montreal, Mile End], San Francisco:[Financial District, Mission District, Japan Town]

If I select a value on Filter 1 corresponding options are updated in Filter 2 using Callback, but I would like to show all options in Filter 2 in the beginning and if a user selects an option on Filter 2 instead, Filter 1 should also be accordingly updated. i.e. Say someone selects Mission District in Filter 2, Filter 1 should automatically update to San Francisco.

How can I do this in Dash?

---

<div class="post-metadata">

**Author:** ![hoatran](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/hoatran/32/21447_2.png) [@hoatran](https://community.plotly.com/u/hoatran)\
**Post date:** [May 24, 2023, 9:13am UTC](https://community.plotly.com/t/interconnected-filters/75473/2 "2023-05-24T09:13:34Z")

</div>

You could use `chained callback` to make it. You can check example here: [Dash](https://dash-example-index.herokuapp.com/dynamic-callback)

---

<div class="post-metadata">

**Author:** ![vsathwikm](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@vsathwikm](https://community.plotly.com/u/vsathwikm)\
**Post date:** [May 26, 2023, 6:38pm UTC](https://community.plotly.com/t/interconnected-filters/75473/3 "2023-05-26T18:38:55Z")

</div>

Thank you @hoatran. That worked!
