We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula help

Jaspal80
7 - Meteor

I have below table and the screen print showing what I need.

 

I am trying to populate 'Desired output' column with data from Values column.

 

when the dates are weekend then the next working day should be working day * sunday * saturday

 

the problem is when we have holiday which can fall on any day of the month.

 

so if holiday is on Friday then the next working day should be values from Monday * sun * sat * friday

and if holiday is on a Monday then the next working day should have values from Tuesday * mon * sun * sat

 

and if its  in between weekday like wed then thus should have thus * wed

 

and this has to work if we have multiple holidays according - so if we have Friday and Monday as holiday - then on tues = Tues * mon * sun* sat * fri

 

i was trying to use multirow but its getting bit completed and need help.

 

you can assume any day as holiday - I have taken 19th as holiday in the example shared.

 

Thank you for your help.

 

 

 

 

ValuesDateTime_Outweekday 6 Sat and 0 SunDesired outputCommentsComments
0.109/1/202240.10  
0.209/2/202250.20  
0.309/3/202260.30WeekendWeekend
0.409/4/202200.40WeekendWeekend
0.509/5/202210.06,=C6*C5*C4Formula
0.609/6/202220.60  
0.709/7/202230.70  
0.809/8/202240.80  
0.909/9/202250.90  
1.009/10/202261.00  
1.109/11/202201.10  
1.209/12/202211.20  
1.309/13/202221.30  
1.409/14/202231.40  
1.509/15/202241.50  
1.609/16/202251.60  
1.709/17/202261.70WeekendWeekend
1.809/18/202201.80WeekendWeekend
1.909/19/202211.90Holiday 
2.009/20/2022211.63=C21*C20*C19*C18Formula

 

 

Jaspal80_0-1666883872353.png

 

 

5 REPLIES 5
ShankerV
17 - Castor

Hi @Jaspal80 

 

Yes, your requirement is possible.

 

Can you please confirm whether how are you arriving on the holiday list. 

 

Jaspal80
7 - Meteor

I am considering UK Holidays

ShankerV
17 - Castor

Hi @Jaspal80 

 

Here is the solution to your problem

 

2.jpg

ShankerV
17 - Castor

hi @Jaspal80 

 

Attaching how the solution is arrived for your reference.

We can also increase the WWWO to WWWWO and WWWWWO if there might be 4 days or 5 days leave at a stretch.

 

Step 1: Converting Weekend and Holiday to W.

Step 2: Doing multirow formula with expression, attached for your reference

Step 3: Calculating the Desired Output using multirow formula with expression, attached for your reference

Step 4: Can be ignored, used select for showcasing the result

 

1.jpg

2.jpg

3.jpg

4.jpg

5.jpg

   

 

Jaspal80
7 - Meteor

Thank you so much champion - This works great. 

 

you rock :)

 

Labels
Top Solution Authors