Thanks Ray,
By generating key column change column in sort stage could achieve this task.
Search found 109 matches
- Wed Jun 12, 2013 9:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Wed Jun 05, 2013 8:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
Thanks Ray, I need to populate running totals for each category (like 10, 20, 30, 40......) and for each project (project_id's). Already I am using below logic to get running totals but I am not sure how could I add key column change to this. Could you please give a suggestion? Logic I am using in t...
- Wed Jun 05, 2013 8:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Tue Jun 04, 2013 1:53 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
I am getting running totals continuously. I want totals separately for each project. Can anyone suggest how can I achieve it? In detail Project_id----year----account_period----category----amount 1 2013 1 10 150 1 2013 1 20 280 1 2013 2 10 200 1 2013 2 20 450 2 2013 1 10 100 2 2013 1 20 520 2 2013 2 ...
- Tue Jun 04, 2013 1:52 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Mon Jun 03, 2013 10:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Mon Jun 03, 2013 9:42 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Mon Jun 03, 2013 9:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
There is a small problem. Finally summation (Running total) is working but it's not calculating in the order. I want to calculate running totals based on the month (accounting period column) 1 to 12. I am sorting at the source query and I tried sorting using sort stage also but it is calculating in ...
- Thu May 30, 2013 9:53 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Wed May 29, 2013 11:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
Stage Variables are like this: TEMP1 - IF DSLink21.CAT='10' THEN TEMP1+DSLink21.BUDGET_AMOUNT ELSE TEMP1 TEMP2 - IF DSLink21.CAT='20' THEN TEMP2+DSLink21.BUDGET_AMOUNT ELSE TEMP2 .................. TEMP - if (DSLink21.CATEGORY='10') Then TEMP1 Else If (DSLink21.CATEGORY='20') Then TEMP2 Else TEMP3 I...
- Tue May 28, 2013 3:23 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
- Tue May 28, 2013 9:52 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
Use stage variable to remember the earlier row and to generate the running total. Make it the same data type as the output column, which must be compatible with the data type of Amount. Initialize t ... Thanks Ray, I already tried that I am getting 0's and 1's that I didn't understand. It was worki...
- Fri May 24, 2013 12:20 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to calculate running totals (cumulative) based on a col?
- Replies: 25
- Views: 12832
How to calculate running totals (cumulative) based on a col?
Hi, I am working on a task to calculate cumulative (running totals) of a column based on another column (code). Example: s.no code amount 1 10 100 2 20 150 3 10 50 4 10 150 5 20 30 Output s.no code amount cumulative 1 10 100 100 2 20 150 160 3 10 50 150 (100+50) 4 10 150 300 (150+150) 5 20 30 190 (1...
- Wed May 15, 2013 9:25 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Bulk transfer between oracle databases/tables ?
- Replies: 5
- Views: 1967
- Tue May 14, 2013 3:03 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Bulk transfer between oracle databases/tables ?
- Replies: 5
- Views: 1967