Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
QSense
Creator II
Creator II

Calculate range between dates

Hello,

I have commitment date that plan for delivery date. 

In other table I have actual _date for occuring date for delivery.

I have to calculate ranges between these two dates.

For instance : 01 line_item planned date: 01.10.2019 on the other hand vendor completed for this line item in 05.10.2019.

I understtod from quantity. Eket.quantity = cumulative sum EKES.quantity.

Thanks

 

EKET : 

EBELN   |  EBELP  | LINE_ITEM | Quantity | Commitment_DATE

100                  0001                    01              10       01.10.2019(dd.mm.yyyy)

100                  0001                    02              20       09.10.2019

EKES:

 

EBELN   |  EBELP  | DELIVERY_ITEM | Quantity | Actual_DATE

100                  0001                    01                        1          01.10.2019

100                  0001                    02                        7          03.10.2019

100                  0001                    03                        2          05.10.2019

100                  0001                    04                        10         09.10.2019

100                  0001                    05                        5          21.10.2019

100                  0001                    06                        5          22.10.2019

Labels (2)
3 Replies
Anil_Babu_Samineni

What is the expected result you are looking for?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
QSense
Creator II
Creator II
Author

EBELN   |  EBELP  | LINE_ITEM | Quantity | Commitment_DATE     | NEW_DATE_COLUMN

100                  0001                    01              10       01.10.2019                        05.10.2019

100                  0001                    02              20       09.10.2019                        22.10.2019

QSense
Creator II
Creator II
Author

LINE_ITEM | Quantity | Commitment_DATE     | NEW_DATE_COLUMN

                  01              10       01.10.2019                        05.10.2019

                   02              20       09.10.2019                        22.10.2019