How can I apply a color rule for a value that does not exist in the dataset currently?
We have a set of color rules that we want to apply for any dataset that visualizes business_unit. However, I have a dataset that is fairly new and doesn't have a lot of data in it (i.e. there are only a couple of different business_unit values).
How can I setup a color rule for all potential business_unit values if all the values are not present in the dataset?
Regards,
Jack
Best Answers
-
Hi @Jack_Kaye, at this point, do you need to have all possible business units as a unique colour or can you group records, say any BUs that don't yet exist in your existing dataset, as a single colour (like grey)?
If you use text values for your colour rules, it would need to appear in your dataset for the colour condition to be applied.
With that beast mode from @GIriarte's suggestion, using numbers to define existing and upcoming BU values gives more flexibility with your colour rules approach, as seen below:
0 -
You can utilize the Java CLI and the
backup-card
command to export the definition of a card to a JSON then modify the JSON definition to include your color rules to include values which don't currently exist in your dataset. Then utilize therestore-card
command to upload those changes to your instance.Make a copy of the card before you start to test and modify so you don't accidentally break your original card.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
One option, if you have a limited number of values, you could set a beast mode (case) assigning a numeric value and then use condition equals x number.
0 -
Thank you for your reply. I'm not sure how I can make this work for my situation. I have a specific field called business_unit that I need to create the rule for. If I were to create a BM with case statement that establishes a numeric value, I would have to force each available value to become a visible open to be able to create the color rule.
Is there no way to select a column value without the value existing when defining color rules?
Regards,
Jack0 -
Hi @Jack_Kaye, at this point, do you need to have all possible business units as a unique colour or can you group records, say any BUs that don't yet exist in your existing dataset, as a single colour (like grey)?
If you use text values for your colour rules, it would need to appear in your dataset for the colour condition to be applied.
With that beast mode from @GIriarte's suggestion, using numbers to define existing and upcoming BU values gives more flexibility with your colour rules approach, as seen below:
0 -
You can utilize the Java CLI and the
backup-card
command to export the definition of a card to a JSON then modify the JSON definition to include your color rules to include values which don't currently exist in your dataset. Then utilize therestore-card
command to upload those changes to your instance.Make a copy of the card before you start to test and modify so you don't accidentally break your original card.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**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