Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
%KEY_VBRP | Condition | Sales Deal |
9311099134/000010 | ZD05 | 0000001455 |
9311099134/000010 | ZP00 |
Maybe just remove the Sales Deal field from your table load, then do a second load from your source only with field %KEY_VBRP and SalesDeal but using a where clause
LOAD
%KEY_VBRP,
[Sales Deal]
from ... where Condition = 'ZD05';
So you have two tables linked by %KEY_VBRP. If you like you could left join the second table back to your first like
Left join (FirstTable) LOAD
%KEY_VBRP,
[Sales Deal]
from ... where Condition = 'ZD05';
Hi,
Have a look into the PREVIOUS- or PEEK-function, script might be:
Data_1:
LOAD
Key,
Cond,
IF(Cond = 'ZP00' AND PREVIOUS(Key) = Key, PREVIOUS(Deal), Deal) AS Deal
RESIDENT
Data
ORDER BY
Key ASC,
Cond ASC;
DROP TABLE Data;
HTH
Peter