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.5K Product Ideas
- 1.5K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 283 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 90 SQL DataFlows
- 565 Datasets
- 2K Magic ETL
- 3.4K Visualize
- 2.3K Charting
- 595 Beast Mode
- 13 App Studio
- 28 Variables
- 592 Automate
- 147 Apps
- 417 APIs & Domo Developer
- 27 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 362 Distribute
- 99 Domo Everywhere
- 261 Scheduled Reports
- 2 Software Integrations
- 96 Manage
- 93 Governance & Security
- 14 Product Releases
- Community Forums
- 37 Getting Started
- 28 Community Member Introductions
- 90 Community Announcements
- 4.8K Archive