1
Is it possible to include IF-ELSE in the Math expression?
Post Body
Total noob to Grafana so I apologize if it's a dumb question.
I have this calculation I need to do: ${Value Add Time} / (${Active time} * ${break_factor}) * 100
, where value add and active times are results retrieved from postgres, while break factor is set as a variable in Grafana. However, if the result from this calculation is > 100, then recalculate without break factor in it.
I noticed that there isn't an if/else option in the Math expression. Is that deliberate? If so, how would I be able to accomplish this?
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/grafana/com...