- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello team,
I am trying to use formula indicator to return a string value based on a condition something like:
If ([[indicator1]]/[[indicator2]] < 5) {"good"} else {"bad"}
Apparently formula indicator returns only numeric values.
Is there any work around?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @venori26 ,
This is not how formula indicators work. Formula indicators is for mathematical calculation and will return a score of some sort - not a string.
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @venori26 ,
In Performance Analytics, Formula Indicators only return numeric values, not strings. To achieve Good / Bad logic, use a numeric formula + thresholds.
Steps to follow
- Create or identify base indicators
Ensure both inputs are Performance Analytics indicators that return numeric values. - Create a Formula Indicator
- Navigate to Performance Analytics --Indicators
- Type: Formula
- Add the formula:
- IF([[Indicator 1]] / [[Indicator 2]] < 5, 1, 0)
- 1 = Good
- 0 = Bad
- Collect scores
Formula indicators calculate only after scores are collected.
Run Collect Scores or wait for the scheduled job. - Configure thresholds
Add thresholds to translate numeric values into text: - 1 - Good (Green)
- 0 - Bad (Red)
- Display on a dashboard
Use a Single Score or Scorecard widget and enable labels/colors to show Good or Bad instead of numbers.
Alternative approach
Keep the formula numeric:
[[Indicator 1]] / [[Indicator 2]]
Then apply thresholds:
- < 5 - Good
- >= 5 - Bad
If my response helped mark as helpful and accept the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for the response!
May I know where to apply the threshold?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Also would like to know if we can color code the values.
if the value <5, then green,
<10 amber
or Red
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
