Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Adding Columns for Weekends and duplicating data

grromerro
8 - Asteroid

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. 

 

Capture4.JPG

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

Capture3.JPG

Thank you

3 REPLIES 3
OTrieger
14 - Magnetar

@grromerro 
One way to do it will be by selecting the first day of the month, then based on a formula determine the number of days for that month, go to Generate Rows and generate the number of days, now create the dates with a formula to add the row number to the initial date. Match the table of rates with your table. With Multi Row Formula add the missing rates.

binu_acs
21 - Polaris

@grromerro one way of doing this

image.png

grromerro
8 - Asteroid

Thank you so much, this was a fantastic solution!

Labels
Top Solution Authors