Dashboard Mode - Parameter controls
Business Question
How can we use a parameter control to dynamically change the sales target and see which products meet or exceed this target?
Jump into concepts and practice - no test required
How can we use a parameter control to dynamically change the sales target and see which products meet or exceed this target?
| Product | Category | Sales |
|---|---|---|
| Chair | Furniture | 250 |
| Desk | Furniture | 450 |
| Pen | Office Supplies | 150 |
| Notebook | Office Supplies | 300 |
| Phone | Technology | 600 |
| Monitor | Technology | 400 |
+----------------------+-----------------------+ | KPI Card | Parameter Control | | Total Sales: 2150 | Sales Target Slider | +----------------------+-----------------------+ | Bar Chart: Sales by Product | | (Colored bars showing if sales meet target) | +------------------------------------------------+ | Table: Product Sales and Target Status | +------------------------------------------------+
The Sales Target parameter control lets the user pick a sales target number.
The Meets Target calculated field uses this parameter to check each product's sales.
The Bar Chart colors bars green or red based on whether sales meet the target.
The Table updates to show which products meet or do not meet the selected sales target.
If you change the Sales Target parameter to 500, which products will show as meeting the target?
Answer: Only Phone with sales 600 meets the target; others show 'No'.
parameter control in Tableau dashboards?Selected Year with values 2019, 2020, 2021, and a calculated field Sales for Year defined as IF [Year] = [Selected Year] THEN [Sales] ELSE 0 END, what happens when the user sets the parameter to 2020?IF [Sales] > [Target Parameter] THEN 'Above Target' ELSE 'Below Target' END.