Is there a way to add unique id or constant to workbench
I am seeking to aggrigate a historic set of data. The problem is the data pull date, a critical peice of identification, is stored in the title of the report - and does not exist in any of the fields. There is no way to identify WHEN in time the data in a row exsisted, or if it differs from the next time that identical row appears in another report.
Example
Row ID | Categorical Variable | Categorical Date | Report Identifier |
123 | Blue | 1/1/2018 | 3/1/2018 |
456 | Red | 2/1/2018 | 3/1/2018 |
789 | Green | 3/1/2018 | 3/1/2018 |
123 | Blue | 1/1/2018 | 4/1/2018 |
456 | Red | 2/1/2018 | 4/1/2018 |
987 | Black | 3/1/2018 | 4/1/2018 |
123 | Blue | 1/1/2018 | 5/1/2018 |
987 | Black | 3/1/2018 | 5/1/2018 |
654 | Red | 4/1/2018 | 5/1/2018 |
I have tried to add a concatenated statement of the max date on a report but it returns the max date of each row... I would prefer not to load each report manually and blend/etl it since it's a standard report that should be workbenched. Is there a way to pull in data from an excel sheet's meta info or title? or a way to attach a unique constant per run? A date would be ideal but i will settle for anything i can use to compare unique id to unique id transactionally.
Best Answer
-
Yes, historically existing rows will need a different solution. Perhaps you could start with the dates you wanted in the spreadsheet, then you could remove that date column and then insert the transform in the workbench job, and see if they append to each other.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1
Answers
-
In your workbench job, you can add a "Transform", a new column of a calculated field.
This will insert a new column called 'Test Date', and if you set the workbench job to append, each new set of rows will have a new value in that 'Test Date' column.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks, that will absolutely help for data imports in the future - but appending historic data it will all look like "today" when in actuality it is different variables (past dates) that apply to each dataset exclusively.
0 -
Yes, historically existing rows will need a different solution. Perhaps you could start with the dates you wanted in the spreadsheet, then you could remove that date column and then insert the transform in the workbench job, and see if they append to each other.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
This might be the only (work-around) solution with the current way Workbench runs.
I actually did end up doing just this and it works.
Thank you!
1
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
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 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