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.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
- 603 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 697 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
- 40 Getting Started
- 30 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive