Coming soon - Get a detailed view of why an account is flagged as spam!
view details
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?

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,041
Link Karma
556
Comment Karma
485
Profile updated: 2 days ago
Posts updated: 4 months ago

Subreddit

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