Display completely different panel and query when dropdown value changes


I am trying to build a dashboard where based on the dropdown I need to display different panels, it could be a pie chart for one value and bar graph for another. The queries for these panels could also be different. Is it possible to build such a dashboard.