bmhuettinger
Registered User.
- Local time
- Today, 02:13
- Joined
- Jul 28, 2017
- Messages
- 59
Good morning all,
I'm going to try and explain my issue as precisely and concisely as possible...
I have an imported table field that is a series of alpha-codes, concatenated with ",". Each code identifies a process step and corresponds with a certain number of days left in the entire process. I used a SplitField function in a query to separate the codes into individual processes, AND I have a (static) table that lists each possible process with it's corresponding number of (lead time) days.
Now, I would like to assign numeric data to the alpha-codes, based on the Lead Time table, and add them all together for a total "number of days remaining".
For example, The "RemainingProcess" field from the daily imported table for Sales Order 98765 = SS,AE,PL.
The query result is [1stProcess]=SS
[2ndProcess]=AE
[3rdProcess]=PL
The Lead Time Table
[SS]=2
[AE]=4
[PL]=1
The total number of days remaining for Sales Order 98765=7 (2+4+1)
I feel like the logic seems far more complicated than it should be, and that the answer is right in front of me but I'm at a loss.
I have to do this on a daily basis (import raw data, splitfield query, match processes with lead times, etc.) so I'm hoping for a relatively simplistic solution.
Thank you in advance.
I'm going to try and explain my issue as precisely and concisely as possible...
I have an imported table field that is a series of alpha-codes, concatenated with ",". Each code identifies a process step and corresponds with a certain number of days left in the entire process. I used a SplitField function in a query to separate the codes into individual processes, AND I have a (static) table that lists each possible process with it's corresponding number of (lead time) days.
Now, I would like to assign numeric data to the alpha-codes, based on the Lead Time table, and add them all together for a total "number of days remaining".
For example, The "RemainingProcess" field from the daily imported table for Sales Order 98765 = SS,AE,PL.
The query result is [1stProcess]=SS
[2ndProcess]=AE
[3rdProcess]=PL
The Lead Time Table
[SS]=2
[AE]=4
[PL]=1
The total number of days remaining for Sales Order 98765=7 (2+4+1)
I feel like the logic seems far more complicated than it should be, and that the answer is right in front of me but I'm at a loss.
I have to do this on a daily basis (import raw data, splitfield query, match processes with lead times, etc.) so I'm hoping for a relatively simplistic solution.
Thank you in advance.