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

Copy/Replicate Rows in Case of Record is not available for Next date

Hi All,

I have a requirement to Map or copy the previous row of the table if for next Date, data is not be available.

I have a Stock Table with some fields like Key, Invoice date, Material and Stock etc. This table is mapped with an external calender date.

So here calender date is available from Date of year Start till today date. But Invoice date is available in only those cases when Invoice has been done. So In Input table maximum records (Rows) are Null because Calender Date is available for all the dates but Invoice date is available in case of very less records.

Here My Requirement is that if key and Stock (row is null except Calender date) is Null in this case for next dates we need to consider the same column till the next available key and Stock. We need to follow this process for whole year for all the keys.


Kindly find the attached excel Input table with Output Table.

Regards

Rishi

1 Solution

Accepted Solutions
2 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

rishikeshtiwari
Creator
Creator
Author

Hi Felip,

Thanks a lot!

I am getting correct result in this scenario. But my requirement is that in Input table I have no Calender Date field. So we need to map it through MasterCalender. But same output is required.

Now kindly find the input and output file.

! !

Regards

Rishi