Formula for Combining Rows and Adding Columns
Hello,
I am trying to accomplish a New DataSet using the Magic ETL where I combine multiple rows that have the same data in one column, but then create new columns for the data that isnt the same in other columns. To better explain, I have provided an example here.
(Please see screenshot below) I have tried using "Group By" tile for the Food column and combine using a ",". I then used a "Split Column" to split the food by comma delimiter to make multiple columns.
My problem is that since the food has no specific order, I end up with different food names in different columns (for example I would want all apples in the first new column but banana gets put in there because its first row for Person B).
I have an image of what I am trying to achieve below. Any help would be great, thanks in advance.
Best Answer
-
You'll need to use the pivot/unpivot tiles in magic ETL. More info here:
Please let me know if you get stuck and I can help out!
If I solved your problem, please select "yes" above
1
Answers
-
You'll need to use the pivot/unpivot tiles in magic ETL. More info here:
Please let me know if you get stuck and I can help out!
If I solved your problem, please select "yes" above
1 -
Thank you,
The "Pivot" tile almost gets me to where I need, however, in the configuration for "Pivot" for #5 "Select what column values will populate this new column" I wanted it to be "Food", which is also what I need to select for #1 "Select the column that has the column labels you want" It appears you cannot select the same columns for those two options (however that is what I need).
0 -
I was actually able to resolve this issue by duplicating the "Food" column with the Select Columns tile and using Join Data tile. I was able to do this with the Pivot tile successfully now that there was 2 duplicate food columns. Thank you for your help.
1 -
Awesome!
If I solved your problem, please select "yes" above
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