Add data row based on Retail value check

If you see the dates the values are updated as per how many consecutive times a retail value is repeated. We have to incorporate that logic as well.