Grab value from one column and add it to another dataset?
This is probably a simple question but it eludes me since I don't use DOMO regularly.
I have 3 datasets. A, B, and C
Dataset 'A' has all the metrics for a specific ad set ID but no information for the campaign. No campaign ID or campaign name.
Dataset 'B' has all the high level details for the ad sets which include the ad set ID and a campaign ID but does not include the campaign name which is what I am ultimately after.
Dataset 'C' has all the high level details for the campaigns. This includes the campaign ID and the campaign name.
In my head, what I think I am attempting to do
- Add a 'Campaign Name' column to dataset 'A'.
- Take the ad set ID from dataset 'A' and lookup in dataset 'B' to get the campaign ID
- Take the campaign ID and lookup in dataset 'C' to get the campaign name
- Write the campaign name to the new 'Campaign Name' column in dataset 'A'
What is the best way to do this? I can visualize the process going from dataset to dataset picking up a little more information each time and then writing it to the new column but I'm just not sure how to execute.
Answers
-
This can all be done in a single ETL. Just go through the flow as you have in your head in Magic ETL and add the inputs along the way joining them as you go. You got this! Let us know if you get stuck!
If I solved your problem, please select "yes" above
0 -
Your ETL will look something like this where you are linking multiple join tiles one after another.
In your case, you would start with dataset B since that has the IDs for everything. Next, add a join tile and connect to dataset A and join on Ad ID. Next, add a join tile and connect to dataset C and join on campaign ID. You can then use the Select Columns or Alter Columns tile to remove columns you don't need.
You will also want to determine if you should do a left join or inner join, depending if you need to carry everything forward or only if the exist in each table.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Thanks. I think I may have figured it out. I guess the nomenclature they use for joins where you are adding rows didn't quite make sense to me when all I wanted to do was add and alter a column. I am doing some data validation now to see if I got the result I expected. I'll be back if I have any other questions.
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
- 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