# Problem creating an 'ALL' in drop-down menu

**URL:** https://community.plotly.com/t/problem-creating-an-all-in-drop-down-menu/35514
**Category:** Dash Python
**Created:** [February 26, 2020, 7:34pm UTC](https://community.plotly.com/t/problem-creating-an-all-in-drop-down-menu/35514 "2020-02-26T19:34:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![unicornsneversleep](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@unicornsneversleep](https://community.plotly.com/u/unicornsneversleep)
#### Post date: [February 26, 2020, 7:34pm UTC](https://community.plotly.com/t/problem-creating-an-all-in-drop-down-menu/35514/1 "2020-02-26T19:34:05Z")

</div>

Hello,  
I want to include all my drop down items as an “ALL” option.

 ![Screen Shot 2020-02-26 at 2.27.52 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/4/498ef6fde36ff6b8c2cf5e15bad21fb0e82e0b18.png)  
However, it shows error when i implement it. The error message is shown below ![Screen Shot 2020-02-26 at 2.32.51 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/9526cf1a1a4979c4af4b5c78be82e4ca680fd9cf.png)

Is there any way around it?  
Or any alternatives?  
I saw people have searched it up before but it’s not solved yet?

Thank you!

---

<div class="post-metadata">

### Author: ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)
#### Post date: [February 26, 2020, 9:48pm UTC](https://community.plotly.com/t/problem-creating-an-all-in-drop-down-menu/35514/2 "2020-02-26T21:48:20Z")

</div>

Hi @unicornsneversleep  
The way I got around this is in the function that comes after the callback. In the Dropdown options for All, I did:

```auto
{}...
{}...
{'label': "All", 'value':"all"}

```

And in the function, just filter your data accordingly. For example, if you’re using Pandas:

```auto
def update_graph(dropdown_value):
    if dropdown_value == 'flexible':
        dff = df[df["column_name"]==dropdown_value]
    if dropdown_value==all:
        dff=df #dataframe not filtered so all column values will be present 

```
