How can I update row values for col1 based on the common ID in col2

How can I use MagicETL to update the rows with NULL Source values to have their relevant Source value, based on ID?
Starting Table
———————-
Source | ID | RankCol
———————-
plant | 100 | 1
NULL | 100 | 2
animal | 101 | 1
NULL | 101 | 2
Desired Resulting Table
———————-
Source | ID
———————-
plant | 100 | 1
plant | 100 | 2
animal | 101 | 1
animal | 101 | 2
Any help is GREATLY appreciated!
Best Answer
-
@emmanuelfabre_1 You can do this using a Group By tile by setting ID as the Group by field and calculating the first non-null value of Source. Then you can join the Group by tile back to the original dataset by ID and replace the original Source field with the one from the Group by tile.
1
Answers
-
@emmanuelfabre_1 You can do this using a Group By tile by setting ID as the Group by field and calculating the first non-null value of Source. Then you can join the Group by tile back to the original dataset by ID and replace the original Source field with the one from the Group by tile.
1 -
Hi, @MichelleH. Happy New Year!
I worked way too long on a few projects, and found a solution on this project. Unfortunately, I forgot to check this thread, as the solution came to me a few hours later. I used a Group by tile like you suggested.
Again, apologies for not replying sooner. The excitement of finishing the work week Thursday morning, in time for a long weekend, got the better of me.
Thank you very much!0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 657 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 815 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 775 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 81 Workflows
- 23 Code Engine
- 40 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 1 AI Projects and Models
- 18 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 144 Manage
- 140 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive