# MultiSelect widget with multiple options for each value

**URL:** <https://discourse.holoviz.org/t/multiselect-widget-with-multiple-options-for-each-value/1118>\
**Category:** Panel\
**Created:** [August 20, 2020, 10:09am UTC](https://discourse.holoviz.org/t/multiselect-widget-with-multiple-options-for-each-value/1118 "2020-08-20T10:09:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AurelienSciarra](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/aureliensciarra/32/857_2.png) [@AurelienSciarra](https://discourse.holoviz.org/u/AurelienSciarra)\
**Post date:** [August 25, 2020, 7:40am UTC](https://discourse.holoviz.org/t/multiselect-widget-with-multiple-options-for-each-value/1118/6 "2020-08-25T07:40:25Z")

</div>

I didn’t understand clearly what you want to do, you said that you consider Company as a key and you want to use multiple key with for each key multiple values. So I was wondering if multi\_select is really what you need.

If you have a small number of keys you can use a selector for each key, you will have all the combinations.  
In that case you just need to add those new selector to pn.depends and to the signature of the get\_plot function.

Another case : If you only need to chose a couple (key, value) you can check this [topic](https://discourse.holoviz.org/t/updating-options-in-a-widget-by-a-previous-widget-value/1134)

But if you’re good with your MultiSelect, replacing ticker.param.value by multi\_select.param.value would do the work. You will need to check if multi\_select is empty , if you have selected only 1 value and the case where you have selected several values. Also I have made a mistake with the instantiation of the MultiSelect widget :

```auto
multi_select = pn.widgets.MultiSelect(name='Test', 
                          value = test_dtf[test_list].drop_duplicates().values.tolist()[0],
                          options = test_dtf[test_list].drop_duplicates().values.tolist())

```

---

_[View the full topic](https://discourse.holoviz.org/t/multiselect-widget-with-multiple-options-for-each-value/1118)._
