Beast mode - Join data from another line
Hi Domo community,
I would like to achieve a join from a single dataset.
Here is the column I have :
ID, Parent_ID, Parents_status, Comment 11 21 2 12 21 3 21 Done 1
I would like to do some beast mode to join data between lines and create two type of data:
Extract the parents status to apply it to the ID in the column Parent_status_New
And the child comment_sum which sum the number of comments attached
ID, Parent_ID, Parents_status, Comment, Parent_status_New, Child_comment_sum 11 21 2 Done 12 21 3 Done 21 Done 1 5
How should I create those beast mode? Do you have any idea how to do that?
Many thanks,
Julien
Answers
-
HI @user047019
You won't be able to do it in a beast mode but you'll need to use a Magic ETL. You can have your original input dataset and then filter through two filter tiles. One filtering where
Parent_ID
is not null (children) and the other whereParent_ID
is null (parents). Then you can use a join based on the children'sParent_ID
with the parent'sID
field. to get theParent_status_New
field. In addition you can take the output from your children filter into a group by and group by theParent_ID
field and count theID
field to get theChild_comment_sum
field. Us a join to join this back to your parent data based onParent_ID
(which you group by) to theID
field from the parent filter.**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2
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
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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