DOMO Variables - Color Coding for Diff Dimensions
Hi everyone! I wanted to create a color coding for a chart that uses a DOMO variable. It is a stacked bar chart with fix x and y values, but the series/categorization changes. For example, it could be a plot of number of people in the world (y) for a given age range (x), and the series/dimension is geographic region (North America, Asia, etc.), gender (M/F) from a DOMO variable. Essentially, I'd like to set a color coding for the entries in geographic region (if North America = green, Asia = red) , gender (M = red, F = green). However, I encountered issues as I am using DOMO variable. In particular, I can only set a color coding for the beastmode that uses the DOMO variable for its default field. Do you have any tips how can I set a color coding for all the dimensions in a given DOMO variable? Thanks!
Answers
-
@Patrick_Cruz You will need to select every possible variable value using the control within Analyzer, then add the color rule for that specific value. In that case, be sure to set the control back to the default value before saving the card. Admittedly this process is not ideal, but requesting a quicker solution would be a good candidate for the Ideas Exchange.
1 -
@MichelleH is correct. When defining the color rules, only the options that are "visible" to the card will show up. That means that you need to define the color for the default options, then use the variable controls in the analyzer to select a different option, go back to the color rules and create the color for the second option… repeat until you have covered your desired options.
1 -
Hi Michelle! Thank you very much for your suggestion. I did try this actually— I changed the field in the control/DOMO variable in the card and it reflects as a change in dimension in my line chart. However, when I am trying to set the color settings, the option to use the entries in that new dimension is not showing up.
Let's put it this way. I have a DOMO variable X, with the option to switch between dimension A and B for a line chart. Dimension A is my default. I had no problem setting the color for every value in dimension A. However, even if I change my DOMO variable control X to take the field dimension B, I still cannot see from the dropdown in color rules the values of dimension B when I select DOMO variable X as the Column in Color rules. Is there a workaround for this?
0 -
@Patrick_Cruz What field are you basing your color rules on? Is it the dataset field for dimension B or the beast mode that displays values of both dimensions based on your input for variable X?
0 -
@MichelleH I tried both, but none worked. I used the beastmode that contains the variable X and fields A and B, as well as the dataset field for dimension B itself.
0 -
@Patrick_Cruz Interesting, I would expect it to work if you tried to set color rules based on the beast mode. Would you be able to share some screenshots of your beast mode and your Analyzer setup?
0 -
My beastmode is Series_Dimension (which is based on Variable called Choose dimension). It's like this:
CASE
WHENChoose dimension
= A THEN AWHEN
Choose dimension
= B THEN BEND
All the color rules I have so far belong to Dimension A
END
0 -
Hi @MichelleH ! I might have just misunderstood your suggestion, but I was able to find a workaround in this. I actually have to set every dimension as a default value before being able to use it for color coding. So the general process is
(1) set the dimension you want to color as the default dimension of the variable
(2) create color rules for the beastmode containing the variable, as setting the dimension of interest as default should give the relevant values for that dimension when picking colors.
Repeat (1) and (2) for as many times as the number of dimensions you have.
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
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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