Stacked Bar from this dataset config?
Not sure if this is possible directly, with Beast Mode, or if I have to change how the dataset is configured with ETL….
The dataset is currently setup like this simplified mockup:
Ignoring the fact that the numbers in my mockup, don't match my card mockup, I want to present them like this:
Is there an out of the box way to do this, and if not, what's my easiest/best option?
Best Answers
-
If you transform your dataset
Category
Value
Type
Budget
343
planned
Budget
3432
carry-over
Budget
123
unplanned
Forecast
444
planned
Forecast
4432
carry-over
Forecast
145
unplanned
Actuals
200
planned
Actuals
3302
carry-over
Actuals
80
unplanned
Then create a stacked bar using category on the xaxis, value on the yaxis, and type in series, you get this:
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **2 -
To transform your dataset, use Magic ETL.
Setup selected columns.
Add an Unpivot Tile. Drag the Unpivot Columns tile onto the canvas.
Unpivot Columns: Select budget, forecast, and actuals.
New Column for Key Names: Enter Category.
New Column for Values: Enter Value.
This will turn the three columns into two: Category and Value.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **2
Answers
-
Ideally, your data would look like this:
Category Type Value
Budget Planned 343
Budget Carry-over 3432
…
The easiest way to get it in that format is with MagicETL. There's probably a more elegant way to do it with a dynamic unpivot, but to me, the easiest to understand is to just select the two columns, add a category column and stack the results on top of each other:
Once it's in that format, the stacked bar is easy:
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
2 -
If you transform your dataset
Category
Value
Type
Budget
343
planned
Budget
3432
carry-over
Budget
123
unplanned
Forecast
444
planned
Forecast
4432
carry-over
Forecast
145
unplanned
Actuals
200
planned
Actuals
3302
carry-over
Actuals
80
unplanned
Then create a stacked bar using category on the xaxis, value on the yaxis, and type in series, you get this:
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **2 -
To transform your dataset, use Magic ETL.
Setup selected columns.
Add an Unpivot Tile. Drag the Unpivot Columns tile onto the canvas.
Unpivot Columns: Select budget, forecast, and actuals.
New Column for Key Names: Enter Category.
New Column for Values: Enter Value.
This will turn the three columns into two: Category and Value.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **2 -
Thanks @ArborRose - that did it; well explained, thank you!
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 483 APIs & Domo Developer
- 87 Workflows
- 23 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 117 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive