Grouping multiple values into a category
Hello,
I think this should be relatively easy but I cant seem to work out how its done.
I am trying to group a number of 'values' so that I can see them on a pie chart.
eg. Imagine the following table
column header 1 column header 2 column header 3
5 6 7
6 4 13
3 7 4
I want a pie chart that shows column header 1 - 25%, column header 2 - 31% and column header 3 - 44% but because a pie won't allow multiple values I am struggling to make this happen.
Any help is appreciated
Comments
-
@andrewh Good question. I was trying to work through this for you and I came up with a quick solution which may not satisfy you but it might work for you.
If you use the "100% Stacked Bar" chart inside the Domo card builder then select your multiple value columns (which you have) as your y-axis and different series then it works, however, you do need an x-axis... If you have a date column that works, or if you could throw in some string text into every row of your table into another column then you could build the card out using that as your x-axis. As far as my knowledge goes, you cannot add multiple value columns to a pie chart. Let me know if you have questions.
See my example below:
I work for Domo.
**Say "Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as "Accepted Solution"1 -
This is a good example of where data could need to be transposed or pivoted before you can get all the use out of it you'd like. That means taking your data like this:
column header 1 column header 2 column header 3
5 6 7
6 4 13
3 7 4
And pivoting it to look like this:
Value Series
5 column header 1
6 column header 1
3 column header 1
6 column header 2
4 column header 2
7 column header 2
7 column header 3
13 column header 3
4 column header 3This is often done using a Dataflow with a transform that looks something like this:
SELECT `column header 1` AS `Value`, 'column header 1' AS `Series`
UNION
SELECT `column header 2` AS `Value`, 'column header 2' AS `Series`
UNION
SELECT `column header 3` AS `Value`, 'column header 3' AS `Series`
(Note that for the Value we are using the record's value from the "column header X" field and for the Series we are using text that describes the category for the value.)
After the data has been pivoted, the pie chart would build out very easily. It's just hard to use summary or tabular data to build out many types of cards.
1
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