Appending new data in DOMO
Best Answers
-
Many connectors have the option to either replace or append data each time the data updates. For the ones that dont, you can create a recursive dataflow to snapshot the data overtime. Here is a great recording that walks through how to build a recursive dataflow:
If I solved your problem, please select "yes" above
0 -
Another great option is the dataset copy - you can create a copy with whatever interval you want and have it append.
1 -
A recursive dataflow will allow you to UPSERT your date (update if it already exist or insert a new record if it doesn't). So if you need to re-run your dataset it'll protect against duplicated data. The caveat to recursive dataflows is that by nature as the dataset grows the ETL will take longer to run as there's more data to import. In your case since it's a montly snapshot that likely won't be an issue.
Using dataset copy and setting it to append will be quicker to process but won't protect against duplicated data if it ever runs more than once in a month.
A simpler option is a new feature to MagicETL where you can specify the output method on an Output Dataset tile:
Just input your original dataset and then set it to partition (this will update, insert, or delete records), and make sure you set a partition key for the month and year. You can use a formula tile and add in a Month field using the LAST_DAY function:
LAST_DAY(`date`)
Just make sure you pull the entire month in otherwise it'll overwrite your old whole month with a partial month if it's not entirely pulled in.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
Many connectors have the option to either replace or append data each time the data updates. For the ones that dont, you can create a recursive dataflow to snapshot the data overtime. Here is a great recording that walks through how to build a recursive dataflow:
If I solved your problem, please select "yes" above
0 -
Another great option is the dataset copy - you can create a copy with whatever interval you want and have it append.
1 -
A recursive dataflow will allow you to UPSERT your date (update if it already exist or insert a new record if it doesn't). So if you need to re-run your dataset it'll protect against duplicated data. The caveat to recursive dataflows is that by nature as the dataset grows the ETL will take longer to run as there's more data to import. In your case since it's a montly snapshot that likely won't be an issue.
Using dataset copy and setting it to append will be quicker to process but won't protect against duplicated data if it ever runs more than once in a month.
A simpler option is a new feature to MagicETL where you can specify the output method on an Output Dataset tile:
Just input your original dataset and then set it to partition (this will update, insert, or delete records), and make sure you set a partition key for the month and year. You can use a formula tile and add in a Month field using the LAST_DAY function:
LAST_DAY(`date`)
Just make sure you pull the entire month in otherwise it'll overwrite your old whole month with a partial month if it's not entirely pulled in.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 620 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 742 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive