Hi Community,
I need your help.
I have a dataset with consecutive weekday prices. I need to calculate the average monthly prices, including Saturdays and Sundays. Since the prices for the weekends are not available in my dataset, I need to generate those rows and copy the last updated rate available (generally the current week's Friday rate).
Occasionally, this can also happen if a holiday falls in the middle of a week. For example, if the holiday is on a Tuesday, I will have prices for Monday, Wednesday, Thursday, and Friday, but I will need to generate the row for Tuesday and copy the rate from Monday.
This is how it looks now.

and this is how I need it to be (colored blue are the dates and rates added)

Thank you