ETL - Create Column with Max Date
I am creating a dashboard using the Illustrator plugin so Beast Mode calculations will not work unfortunately. I am looking to show the date of the newest data on the dashboard. I have a column called "Date" so I need to pull the max date and stamp it to a new column.
Is that possible or will I have to use a SQL dataflow?
Thanks!
Comments
-
I'm also looking to do this in Magic ETL. Any resolution?
0 -
You will need to add it as a column to your data set - you can do this in Magic ETL or in your original data set update.
First, if you can change the data set you are bringing in to add a "Current Date" or a "Max Date"in our SQL statement, that is probably the easiest way. IF you do not have access to change the code that creates the data set then Magic ETL is the way to do it.
The ETL looks like this:
If you have a column in your table that is constant for all entries, you can kip the Add Constants part. For Add Constants I add a column I call "Constant" and put in the value of 1 (this could be anything you want).
Now group data by the constant and the new field is "Latest Date" and select the column the Date is in and select Maximum in the aggregation method field. something like this:
Now combine the group by and the Constant boxes with a join and the "Constant Field" is the common link. Have all fields go to the new outfile and then you will have an outfile to use in your cards / illustrator.
Dojo Community Member
** Please like responses by clicking on the thumbs up
** Please Accept / check the answer that solved your problem / answered your question.2 -
This is an excelent solution, thanks for posting!
0
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