HTML conditional color format as percentage of goal
I have a a domo dashboard that is in the bullet format. the data I have is listed in into 3 categories: 'Current', 'Trending', and 'Goal'.
I want to create conditional color formatting that turns the current section red when it is below the goal, yellow when it has reached the goal, and green when it has surpassed the goal. I would like to trending section to use the same format, but use different shades of green, yellow, and red.
Thanks,
Jeff
Comments
-
One thing you could do would be to create a BeastMode to check the current value against the goal.
Something like this:
CASE WHEN `Current` < `Goal` THEN 1
WHEN `Current` = `Goal` THEN 2
WHEN `Current` > `Goal` THEN 3
ENDThen you could use the new BeastMode field in your color options like so:
From there you could repeat the excercise for trending and assign new colors. (Make sure to uncheck the 'Apply format to table row' if you don't want the entire row to be highlighted the specified color)
Hope this helps. Let me know if you have any other questions.
Sincerely,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
Thanks for the response.I tried using your solution and I found that the coloring did not change the color of the 'current', but rather it created color rules for the new beast mode formula. Is there a way to make the color of 'current' change according to its position relative to the goal?
1 -
That's a nice idea. Make sure to add it to the Ideas Exchange.
More generally, colors changing once they meet a condition is something Domo is working on, but could be better. Conditional formatting is part of new table cards, so you could transition card types if you want to take advantage of that.
There may be another approach you'd be interested in as well. We use simple guage cards for a similar purpose, sales trend to sales quota and current sales to sales quota. We set up those figures as ratios, like 65% or 114% to goal, and use the guage range color options to indicate progress to goal (like, green over 100%). Then in the card summary number we create a multiple number beast mode to show all values, not just the ratio, for further detail. This type of card is one of the first cards on every sales page since it's so simple and effective.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive