Alteryx Designer Desktop Discussions

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

Add additional date column with only business days

sagar_agarwal
Asteroide

Hi All,

 

I have a dataset in which I have the month & year column. I want to add 2 additional columns for date - one with business days for that month & other column with regular dates. Giving an example screenshot below. If the number of records for a particular month is more than number of business days / regular days, I would want the days to repeat (in a round robin like fashion, starting again from the first business day / regular day).

 

Would really appreciate some help on this. Thanks.

 

Add business days.PNG

 

 

 

4 RESPUESTAS 4
pcatterson
Bólido

Do you mean like this?

sagar_agarwal
Asteroide

Hi - Yes exactly like this. Except that I don't want the dates to keep on adding.

 

I have approx 100,000 rows for each month. So for "All Days" column, I want the number to repeat something like "1,2,3,4,....31,1,2,3,4,.....31...and so on"

Similarly for business days, it should be something like "1,2,3,4,5,8,....22,1,2,3,4,5,8,...22...." and so on.

 

The idea is that my data did not had any day field, so I am trying to evenly distribute the rows for a month across the date range of "All Days" & "Business Days". I hope I could explain my requirement.

pcatterson
Bólido

Ah, a different question.  You want to evenly assign the data a number from 1 through 21 for Business Days and 1 through 31 for All Days.  Is that right?

sagar_agarwal
Asteroide

Perfect - thank you very much. I had to combine this even assignment with the weekend logic you shared earlier to get what I really wanted. Thank you very much! :)

Encuestas
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Etiquetas