Need to control a recursive with a Timestamp
I'm doing a recursive to build client data over time and using the Date of incoming calls as the match column to determine duplicates to be excluded. However, sometimes the data changes, so what was going to be 2.7% on 8/15 has been changed to 3.5% on 8/15... hence the datestamp.
How do I build into my recursive the instruction to always keep the data with the most recent timestamp for that date?
Comments
-
Sorry, I didn't finish my thought! Will requiring a match between both the Date AND the Timestamp overcome that problem? I'm thinking it will but I'm brand new to DOMO, so would like some advice.
0 -
your scenario is unclear. please define what one row means in your input dataset.
if i had to guess the granularity is
one row per phone call. and it sounds like the phoneCall date can be updated after the first recording of the phone call.
If that is correct you can APPEND New_Data and Historical_Data, then use WINDOW&RANK to ROW_NUMBER your data, PARTITION BY phoneCall_ID and Order by TimeStamp.
Then FILTER where RowNumber = 1
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
@jaeW_at_Onyx Thanks for the response!
The granularity for a row on this particular dataset is the percentage of forecast calls for the day which are anticipated to come in at a particular hour. For example, 08/15/22 17:30 is 0.00002. However the forecast can change and 08/15/22 17:30 may change to 0.00012. I need to make sure that change happens in the data rather than creating a duplicate.
0 -
'you can APPEND New_Data and Historical_Data, then use WINDOW&RANK to ROW_NUMBER your data, PARTITION BY phoneCall_ID and Order by TimeStamp.'
Make your partition at the granularity of the data (dateTime it sounds like) order by timestamp.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1
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
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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