I have a bunch of data which shows cumulative reviews on each product (on indirect ecommerce channels). However, if there were no reviews for a particular product on a specific date, my dataset will not show the cumulative review for that product.... so for example, I may have the following data for Product A - in which I'm missing data on 1/7/21 (because there were no reviews posted on that day for Product A). For 1/7, I would like to have a duplicate row from 1/6 for these 1/7.
Can you advise how I can do this in an ETL? I'm thinking I may need to use Rank & Window and reference the next actual value to populate the fields downward....
Date -- Product -- Cum. rating -- Cum. reviews -- Brand -- RPC
1/5/21 -- product A -- 3.93 -- 845 -- Ridgid -- B23398
1/5/21 - Product B -- 4.12 -- 423 -- Greenlee -- A4324
1/6/21 -- product A -- 3.95 -- 846 -- Ridgid -- B23398
1/7/21 - Product B -- 4.20 -- 428 -- Greenlee -- A4324
1/8/21 -- product A -- 3.99 -- 847 -- Ridgid -- B23398
I want to add in the following:
1/6/21 - Product B -- 4.12 -- 423 -- Greenlee -- A4324
1/7/21 -- product A -- 3.95 -- 846 -- Ridgid -- B23398
1/8/21 - Product B -- 4.20 -- 428 -- Greenlee -- A4324