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
- 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