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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 695 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive