I have a dataset like this: Week Key Product Value 1 AB TRN 2.4 1 AB LJL 4.5 1 CD LJL 3.4 2 AB HTF 4.5 Now if say in 52 weeks, i have 100 keys. I want to look for those 100 keys in every week, and if its missing, I want to copy the all the last known data for that key to the missing week. Here is a working solution where it retains the key, product combination: But my situation is modified a little bit, I want to retain the combinations only if key is missing in a particular week, and not when key-product combination.
... View more