I am trying to use the switch function with MIN/MAX
I am looking to produce either the max or min values of each warehouse based on a condition.
Essentially:
- If the {Performance} is “High” then I would like the corresponding {Max Metric} value to display
- If the {Performance} is “Low” then I would like the corresponding {Min Metric} value to display
Quicksight does not accept this syntax:
switch({Performance},
“High”, {Max Metric},
“Low”, {Min Metric},
“other”)
However, when replacing the {Max Metric} and {Min Metric} with non calculated fields or with strings, Quicksight accepts it.
Any Ideas?
Link to Arena sample data:
warehouse performance