Conditional Formatting
Hello, I've seen some other posts about conditional formatting, but they involved html and I have extremely limited coding ability. I'll explain what I'm trying to do below in case there is an easier way or I'm not approaching it from the right angle. Thanks in advance!
Say I've got two variables: 1. Sales Quota 2. Actual Sales. My beastmode divides the Actual Sales by the Quota per quarter to see what percent of their target each salesperson is reaching. For example,
case when QUARTER(`Expected close date`) = 1 then (`Weighted USD Value` / 10000)*100
when QUARTER(`Expected close date`) = 2 then (`Weighted USD Value` / 20000)*100
when QUARTER(`Expected close date`) = 3 then (`Weighted USD Value` / 30000)*100
when QUARTER(`Expected close date`) = 4 then (`Weighted USD Value` / 40000)*100
else 0 end
What I'd like to do is have the columns in my bar chart change color depending on the result of this beast mode, 75%+ is green, 50-75% yellow, 50% or less then red. Something like:
case when QUARTER(`Expected close date`) = 1 and ((`Weighted USD Value` / 10000)*100) > 0.75 then 'GREEN BAR'
when QUARTER(`Expected close date`) = 1 and ((`Weighted USD Value` / 10000)*100) < 0.75 then 'YELLOW BAR'
when QUARTER(`Expected close date`) = 1 and ((`Weighted USD Value` / 10000)*100) < 0.5 then 'RED BAR' etc...
Best Answer
-
Is that the column you're using on the Y access? If so you could probably just use the standard Color option in the chart builder.
Below I have a beast mode that is COUNT(`Id`) and is what powers the Y axis. In the colors builder I just have it set that when the column COUNT(`Id`) is greater than 100 make it red, if it's between 50-99 make it blue, if its between 0-49 make it green.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**3
Answers
-
Is that the column you're using on the Y access? If so you could probably just use the standard Color option in the chart builder.
Below I have a beast mode that is COUNT(`Id`) and is what powers the Y axis. In the colors builder I just have it set that when the column COUNT(`Id`) is greater than 100 make it red, if it's between 50-99 make it blue, if its between 0-49 make it green.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**3 -
Thank you very much, I was definitely overcomplicating it!
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive