Handling "Replace vs. Append" Logic with Email Connector
Hello everyone,
I'm seeking advice on configuring the Domo Email Connector for importing reports in a "month-to-date" format via email attachments. I want to a) retain the reports for previous months, but also b) replace the latest "month-to-date" report.
Our goal is to achieve a combination of "Replace" and "Append" logic (if possible):
- Replace Logic: Replace data for the current month during the month.
- Append Logic: Append new data when a new month starts.
Example: During May 1st through 31st, do a replace with the latest "month-to-date' report but also append/retain the month-to-date reports from April 30th, March 31st, etc.
Has anyone implemented something similar or can offer guidance on how to handle this using the Email Connector and DataFlows?
Thanks in advance for your help!
Best Answer
-
I think you'll end up with a couple of different datasets here:
- The email connector dataset, which appends the new data from each email
- A dataset where you run the full email connector dataset through Magic ETL. Here, you would find the max batch date for each month, and then isolate those rows before outputting to the final dataset. This way you get the latest report for the current month, plus the "final" report for each previous month.
To find the max batch date for a given month, I would probably create a "Month" field using the formula tile, then group by that field to find the max batch date. An inner join on month = month and max batch date = batch date back to the data input should isolate the appropriate rows.
0
Answers
-
I think you'll end up with a couple of different datasets here:
- The email connector dataset, which appends the new data from each email
- A dataset where you run the full email connector dataset through Magic ETL. Here, you would find the max batch date for each month, and then isolate those rows before outputting to the final dataset. This way you get the latest report for the current month, plus the "final" report for each previous month.
To find the max batch date for a given month, I would probably create a "Month" field using the formula tile, then group by that field to find the max batch date. An inner join on month = month and max batch date = batch date back to the data input should isolate the appropriate rows.
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
- 602 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
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive