# Dropdown/button for sum and mean

**URL:** <https://community.plotly.com/t/dropdown-button-for-sum-and-mean/44324>\
**Category:** Dash Python\
**Created:** [August 29, 2020, 1:06pm UTC](https://community.plotly.com/t/dropdown-button-for-sum-and-mean/44324 "2020-08-29T13:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nivek](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/nivek/32/10984_2.png) [@nivek](https://community.plotly.com/u/nivek)\
**Post date:** [August 29, 2020, 1:06pm UTC](https://community.plotly.com/t/dropdown-button-for-sum-and-mean/44324/1 "2020-08-29T13:06:04Z")

</div>

I want to know how can the following be done. I am new to Dash so please help me out.

I have created an app for getting summary statistics from a given dateset. So if someone tries to get the top 10 values of something, I want to be able to give the user an option of displaying the output as the sum of the target value or the average.

thanks in advance.
