Custom Color by Value in Symbol + Grouped Bar Chart
In my chart, the target value is the symbol. I have two series one that is showing daily value and the other showing month to date value. I would like the color of the bar for the daily value and the color of the bar for the monthly value to be green if target is met, yellow if value is 95% of target and red if value is less than 95% of target. Using ChatGPT suggestion I created the following beast mode "Target Achieved":
CASE
WHEN 'Daily' >= Target
THEN 'Green'
WHEN Daily
> Target
*0.95 Then 'Yellow'
ELSE 'Red'
END
I went into Colors and set Target achieved to each of the colors. It did not change my the colors on my graph. Is there a way to customize color by value in a symbol + grouped bar chart? I have customized colors by value using a bullet chart before but I don't see a way to show both daily and month to date in a bullet chart. Any suggestions or help would be appreciated.
Answers
-
Hi @RTM ,
Unfortunately, I don't think you can do that for this chart. The code you have doesn't really work because we are in SQL and assigning things to color names is a very HTML thing. These are charts are usually one color per bar.
HOWEVER, there are other charts that might help. For instance, you can use a regular mega table and make a column to show % to target. I made a video to explain a bit more: https://www.loom.com/share/82d5a98d9fb7442c819e08acb27e7477
John Le
Are you on my newsletter? If not, signup here so you don't miss out on my Domo tricks, alerts about my webinars, cooking tips and more
Signup here:
0 -
Thanks for the video response. Although not what I was looking for still think I will be able to utilize for something else I am working on. Will definitely check out some of your other videos
1
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 637 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 762 Beast Mode
- 65 App Studio
- 42 Variables
- 704 Automate
- 182 Apps
- 458 APIs & Domo Developer
- 53 Workflows
- 11 DomoAI
- 39 Predict
- 16 Jupyter Workspaces
- 23 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 133 Manage
- 130 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive