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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 58 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive