Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

how to replicate value if it is friday

Sshasnk
8 - Asteroid

I have a dataset that does not include weekends I have to replicate the value from Friday but change the date

 

Example:

 

Pricedateday
122020-12-03Thur
742020-12-04Fri
202020-12-07Mon
452020-12-08Tue

 

output:

 

pricedateday
122020-12-03Thu
742020-12-04Fri
742020-12-05Sat
742020-12-06Sun
202020-12-07Mon
452020-12-08Tue

 

Steps:

1. Add sat and Sun line

2. price column should be whatever value above but the date should change as ex: 2020-12-05

3 REPLIES 3
afv2688
16 - Nebula
16 - Nebula

Hello @Sshasnk,

 

this workflow replaces fridays with friday saturday and sunday and then parses them into different lines:

 

NOTE: Although it is not shown in the image the date is also modified

 

Untitled.png

 

 

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi @Sshasnk,


This workflow isn't so clean as the one provided by @afv2688 by this should work for you.

 

Emil_Kos_1-1611225652159.png

The output:

 

Emil_Kos_2-1611225660856.png

 

Probably you would need to a formula to @afv2688 solution that would add one or two days depending on which day it is. 

Qiu
20 - Arcturus
20 - Arcturus

@Sshasnk 

Tried with some different tools.

0121-Sshasnk.PNG

Labels