Adding Third Variable to Cards
I have created a stacked bar chart representing tasks completed by two separate parties. I would also like to be able to show the total number of tasks (a.k.a. sample size for each instance). I cannot seem to find a way to include this third variable. Below I have included two screenshots showing my chart in Domo and what I am trying to accomplish done in Tableau. Please let me know if there is a work around for this.
Best Answer
-
If I understand correctly, you want to show three data points: tasks by party 1; tasks by party 2; and total tasks (party 1 + party 2 + others).
There are a few different ways you could do this, and the best method really depends on how you want to visualize it. One option is to use a different kind of chart. Check out this link for documentation of each of the various chart types: http://knowledge.domo.com?cid=chartbuilding. In paticular, check out the Stacked Bar with Line: http://knowledge.domo.com?cid=stackedbarwithline.
Another possibility is to do some data prep in a Beast Mode calculation. Use a CASE statement to identify when the record is entity 1, entity 2, or other. Something like this would work:
CASE
WHEN `party` = 1 then 'Party 1'
WHEN `party` = 2 then 'Party 2'
ELSE 'All Others'You could then use this Beast Mode column as the Series in your stacked bar chart with count of tasks as the Y value.
Hope that gets you going in the right direction.
Best,
Dan
2
Answers
-
If I understand correctly, you want to show three data points: tasks by party 1; tasks by party 2; and total tasks (party 1 + party 2 + others).
There are a few different ways you could do this, and the best method really depends on how you want to visualize it. One option is to use a different kind of chart. Check out this link for documentation of each of the various chart types: http://knowledge.domo.com?cid=chartbuilding. In paticular, check out the Stacked Bar with Line: http://knowledge.domo.com?cid=stackedbarwithline.
Another possibility is to do some data prep in a Beast Mode calculation. Use a CASE statement to identify when the record is entity 1, entity 2, or other. Something like this would work:
CASE
WHEN `party` = 1 then 'Party 1'
WHEN `party` = 2 then 'Party 2'
ELSE 'All Others'You could then use this Beast Mode column as the Series in your stacked bar chart with count of tasks as the Y value.
Hope that gets you going in the right direction.
Best,
Dan
2
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 660 Datasets
- 117 SQL DataFlows
- 2.2K Magic ETL
- 816 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 84 App Studio
- 46 Variables
- 778 Automate
- 190 Apps
- 482 APIs & Domo Developer
- 83 Workflows
- 23 Code Engine
- 41 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 2 AI Projects and Models
- 18 Jupyter Workspaces
- 412 Distribute
- 120 Domo Everywhere
- 281 Scheduled Reports
- 11 Software Integrations
- 145 Manage
- 141 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 4.8K Archive