Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Adding dates in between

BharathSrivatsa
7 - Meteor

HI guys, so I have a doubt using multi row formula. I have a data set like below, with missing dates in between. 

2020-01-30

kerala
2020-01-30india
2020-02-02delhi
2020-02-04india

 

This is what I want to do. To add the missing dates in between. the date column is in date data type. Which function will help me to do this? I am looking for the logic. 

2020-01-30kerala
2020-01-30India
2020-02-01India
2020-02-02delhi
2020-02-03delhi
2020-02-04India

 

Thank you.

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @BharathSrivatsa 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1634105643336.png

 

1. Using multi-row formula to check whether the difference between the current row date and next row date is more than 1 based on this setting the next date.

2. Using generate row formula tool to generate missing dates.

 

Hope this helps : )

Sebastiaandb
12 - Quasar

@BharathSrivatsa 

 

Here you go!

Sebastiaandb_0-1634105933782.png

 

Hope it helps you out :-)!

 

 

Sebastiaandb
12 - Quasar

@atcodedog05 Your solution is more efficient 😉

Labels
Top Solution Authors