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
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive